[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

Raymond Hettinger report at bugs.python.org
Mon Apr 28 04:17:25 CEST 2014


Raymond Hettinger added the comment:

> any chance of the easy (_fields) change being committed 
> and putting off the harder parts until later?

Yes, it is not an all-or-nothing exercise.


>> 1. _asdict() returns a normal dictionary. I don't know if this is what
>>    is required.

A regular dict would work just fine for now (there is a patch to introduce an OrderedDict in C, but that transition could be done later.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1820>
_______________________________________


More information about the Python-bugs-list mailing list