[Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncement

Armin Ronacher armin.ronacher at active-4.com
Tue Mar 3 00:44:11 CET 2009


Guido van Rossum <guido <at> python.org> writes:
> Anyway, it seems the collections module in particular is already
> internally inconsistent -- NamedTuple vs. defaultdict. In a sense
> defaultdict is the odd one out here, since these are things you import
> from some module, they're not built-in. Maybe it should be renamed to
> NamedDict?
I suppose you mean "DefaultDict".  That would actually be the best solution. 
Then the module would be consistent and the new ordered dict version would go by
the name "OrderedDict".


PS.: so is datetime.datetime a builtin then? :)

More information about the Python-Dev mailing list