[Python-ideas] Proto-PEP: Preserving the order of **kwargs in a function.

Nick Coghlan ncoghlan at gmail.com
Fri Apr 11 13:49:15 CEST 2014


On 11 Apr 2014 07:00, "Barry Warsaw" <barry at python.org> wrote:
>
> On Apr 10, 2014, at 08:20 PM, Andrew Barnert wrote:
>
> >I think your own example shows why this doesn't work.
>
> Not really.   It was just a silly example for conciseness.  I don't care
how
> you build up the OrderedDict, and there are several order-preserving ways
to
> do that.  I'm not sure it's a good idea to change *all of Python* just to
make
> the OD constructor nicer.

It's not "all of Python" - it's only functions that accept **kwargs. And
when your code is speed critical, doing that's already a bad idea.

Cheers,
Nick.

>
> -Barry
>
> _______________________________________________
> 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/20140411/cec41b9d/attachment.html>


More information about the Python-ideas mailing list