3 ms·
A lot of the points here are really quite out of date. (For example, defaultdict has been part of the stdlib since 2.5, and namedtuple since 2.6.)
by katrielalex 11y ago
A lot of the points here are really quite out of date. (For example, defaultdict has been part of the stdlib since 2.5, and namedtuple since 2.6.)
- JackC 11y agoFunny, those were the same two I noticed. The document says it was written shortly before Python 2.5, which came out in September 2006. So it's probably about 9 years old.
- vog 11y agoIndeed, it would be less confusing if the submission title had a "(2006)" suffix.
- narsil 11y agoAn Abstract Base Class module (abc) was added in 2.6 as well. https://docs.python.org/2/library/abc.html https://docs.python.org/2/library/abc.html
- Orangeair 11y agoIn addition, we now have enums (Since Python 3.4) and an equivalent to the ternary operator (val1 if condition else val2).