- Expert Python Programming(Third Edition)
- Micha? Jaworski Tarek Ziadé
- 92字
- 2021-06-24 14:54:52
The main syntax differences and common pitfalls
The Python documentation is the best reference for differences between every Python release. However, for your convenience, this section summarizes the most important ones. This does not change the fact that the documentation is mandatory reading for those not familiar with Python 3 yet (see https://docs.python.org/3.0/whatsnew/3.0.html).
The breaking changes that were introduced by Python 3 can be generally divided into three groups:
- Syntax changes, where some syntax elements were removed/changed and other elements were added
- Changes in the standard library
- Changes in datatypes and collections