4 ms·
Unfortunately it's quite old, and some of the answers are rather out of date.
by kingkilr 17y ago
Unfortunately it's quite old, and some of the answers are rather out of date.
- dpritchett 17y agoIt appears you're right! I can't find a date on Norvig's site but here's a link to it from 2001: http://www.brokenrobot.org/archives/000427.html http://www.brokenrobot.org/archives/000427.html
- jcl 17y agoNorvig did some curation over the years, however. One of the answers mentions that the ternary "if" expression is scheduled to appear in Python 2.5, which is information from around 2006.
- mumrah 17y agoIndeed, defaultdict was added in 2.5 to the collections module