There were quite a few changes in python 3.
A few things I can think of:
- strings are unicode by default
- changes to the stdlib: stuff was moved around, new stuff was added
- a lot of stuff is lazy(map, filter, zip, dict.keys, dict.values...)
- keyword-only arguments
- yield from
- unpacking fanciness:
- Code: Select all
>>> first, *rest = range(5)
[1, 2, 3, 4]
That's just some things I can think of...