[Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncement
python at rcn.com
Tue Mar 3 00:43:05 CET 2009
> *Maybe* the "built-in status" should guide the
> capitalization, so only built-in types are lowercase (str, int, dict
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.
More information about the Python-Dev