[Python-ideas] a new namedtuple

Ethan Furman ethan at stoneleaf.us
Mon Jul 17 20:04:34 EDT 2017


On 07/17/2017 05:01 PM, Ethan Furman wrote:

> I haven't timed it (I'm hoping somebody will volunteer to be the bench mark guru), I'll offer my NamedTuple
> implementation from my aenum [1] library.  It uses the same metaclass techniques as Enum, and offers doc string and
> default value support in the class-based form.

Oh, and to be clear, there are some other nice-to-have and/or neat features (such as variable-sized NamedTuples), that I 
would expect to be trimmed from a stdlib version.

--
~Ethan~



More information about the Python-ideas mailing list