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

Raymond Hettinger python at rcn.com
Tue Mar 3 00:43:05 CET 2009


[GvR]
> *Maybe* the "built-in status" should guide the
> capitalization, so only built-in types are lowercase (str, int, dict
> etc.).

That makes sense.


> Anyway, it seems the collections module in particular is already
> internally inconsistent -- NamedTuple vs. defaultdict.

FWIW, namedtuple() is a factory function that creates a class, it isn't
a class itself.  There are no instances of namedtuple().  Most functions
are all lowercase.  Don't know if that applies to factory functions too.


Raymond




More information about the Python-Dev mailing list