Re: [Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict

2019年2月01日 03:59:32 -0800

Hi!
> Option 4) Just make the change directly in 3.8, s/OrderedDict/dict/, and
> be done will it. This gives users the benefits right away and doesn't
> annoy them with warnings that they likely don't care about. There is some
> precedent for this. To make namedtuple class creation faster, the
> *verbose* option was dropped without any deprecation period. It looks like
> no one missed that feature at all, but they did get the immediate benefit
> of faster import times. In the case of using regular dicts in named
> tuples, people will get immediate and significant space savings as well as
> a speed benefit.
>
 +1 for option 4
Regards!
eamanu
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to