[Python-ideas] Add recordlcass to collections module

Angus Hollands goosey15 at gmail.com
Sat Sep 1 13:08:06 EDT 2018


>
> From: "Steven D'Aprano" <steve at pearwood.info>
> To: python-ideas at python.org
> Cc:
> Bcc:
> Date: Sat, 1 Sep 2018 18:25:21 +1000
> Subject: Re: [Python-ideas] Add recordlcass to collections module
> 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
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas


It would need to be a list of the members are mutable. As to the other
questions, yes, do we need another module in the standard library?Angus

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180901/4de990ff/attachment.html>


More information about the Python-ideas mailing list