[Python-ideas] namedtuple with ordereddict

Jim J. Jewett jimjjewett at gmail.com
Tue Jul 18 18:16:26 EDT 2017


Given that

(1) dicts now always pay the price for ordering
(2) namedtuple is being accelerated

is there any reason not to simply define it as a view on a dict, or at
least as a limited proxy to one?

Then constructing a specific instance from the arguments used to
create it could be as simple as keeping a reference to the temporary
created to pass those arguments...

-jJ


More information about the Python-ideas mailing list