[Python-ideas] Why does BoundArguments use an OrderedDict?

Guido van Rossum guido at python.org
Wed Dec 17 19:14:25 CET 2014


Yes, it should stay in collections.
On Dec 17, 2014 10:12 AM, "Antoine Pitrou" <solipsis at pitrou.net> wrote:

> 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.
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141217/ab6ba3dc/attachment.html>


More information about the Python-ideas mailing list