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

Eric Snow ericsnowcurrently at gmail.com
Wed Dec 17 22:11:23 CET 2014


On Wed, Dec 17, 2014 at 11:11 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> I have reservations about the overall approach. Should it really be a
> builtin

The patch doesn't add it to bltinmodule.c.  Perhaps you mean the
additions to Python.h, object.c, and the Makefile.  In that case then
I actually agree.  I was probably just anticipating the use of
OrderedDict by the interpreter.  However, that can wait until needed.

> and expose a public C API?

Yeah, it really doesn't need that either (if I remember right).  If a
C-API becomes desirable then it would be easy to add later.

> It sounds like putting it in the
> _collections module should be sufficient.

Agreed.

-eric


More information about the Python-ideas mailing list