Hacker News new | ask | show | jobs
by katrielalex 4068 days 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.)
3 comments

Funny, 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.

Indeed, it would be less confusing if the submission title had a "(2006)" suffix.
In addition, we now have enums (Since Python 3.4) and an equivalent to the ternary operator (val1 if condition else val2).
An Abstract Base Class module (abc) was added in 2.6 as well. https://docs.python.org/2/library/abc.html