[Python-ideas] Why does BoundArguments use an OrderedDict?
Antoine Pitrou
solipsis at pitrou.net
Wed Dec 17 19:11:39 CET 2014
On Tue, 16 Dec 2014 23:18:55 -0700
Eric Snow <ericsnowcurrently at gmail.com>
wrote:
> On Tue, Dec 16, 2014 at 7:45 PM, Guido van Rossum <guido at python.org> wrote:
> > On Tue, Dec 16, 2014 at 6:27 PM, Wes Turner <wes.turner at gmail.com> wrote:
> >>
> >> It really would be helpful to have a C-implemented OrderedDict in stdlib.
> >
> >
> > +1
>
> http://bugs.python.org/issue16991
>
> Reviews welcome! :)
>
> The patch is undoubtedly stale (after a year and a half). It
> definitely could use some trimming (basically +2500 lines), but a lot
> of the bulk comes from the boilerplate involved in writing iterators
> (and the odict views) at the C/C-API level.
I have reservations about the overall approach. Should it really be a
builtin and expose a public C API? It sounds like putting it in the
_collections module should be sufficient.
Regards
Antoine.
More information about the Python-ideas
mailing list