We cannot possibly fit all the Python 3 changes and improvements into this appendix. However, the other commonly cited changes are as follows:
- print() is now a function: Previously it was a statement, that is, arguments were not in parentheses
- Integers don't overflow: sys.maxint is outdated; integers will have unlimited precision
- Inequality operator <> is removed: Use != instead
- True Integer Division: In Python 2, 3/2 would evaluate to 1. It will be correctly evaluated to 1.5 in Python 3
- Use range instead of xrange: range() will now return iterators, as xrange() used to work before
- Dictionary keys are views: dict and dict-like classes (such as QueryDict) will return iterators instead of lists for keys(), items(), and values() ...