Incompatibilities moving from Python 2 to Python 3
suggest change000Incompatibilities moving from Python 2 to Python 3
Print statement vs. Print function
Differences between range and xrange functions
Raising and handling Exceptions
Leaked variables in list comprehension
.next method on iterators renamed
filter map and zip return iterators instead of sequences
Removed operators and synonymous with and repr
Reduce is no longer a built-in
All classes are new-style classes in Python 3
The round function tie-breaking and return type
cmp function removed in Python 3
Return value when writing to a file object
encode / decode to hex no longer available
exec statement is a function in Python 3
hasattr function bug in Python 2
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents