[Python-ideas] Add recordlcass to collections module

Steven D'Aprano steve at pearwood.info
Sat Sep 1 04:25:21 EDT 2018


On Sat, Sep 01, 2018 at 09:47:04AM +0200, Martin Bammer wrote:
> Hi,
> 
> what about adding recordclass 
> (https://bitbucket.org/intellimath/recordclass) to the collections module

The first thing you need to do is ask the author of that library whether 
or not he or she is willing to donate the library to the Python stdlib, 
which (among other things) means keeping to the same release schedule as 
the rest of the stdlib.

 
> It is like namedtuple, but elements are writable and it is written in C 
> and thus much faster.

Faster than what?


> And for convenience it could be named as namedlist.

Why? Is it a list?

How or why is it better than dataclasses?


-- 
Steve


More information about the Python-ideas mailing list