<p dir="ltr"><br>
On 1 Mar 2013 03:34, "Guido van Rossum" <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:<br>
><br>
> Hm. I write code regularly that takes a **kwargs dict and stores it<br>
> into some other longer-lasting datastructure. Having that other<br>
> datastructure suddenly receive OrderedDicts instead of plain dicts<br>
> might definitely cause some confusion and possible performance issues.<br>
> And I don't recall ever having wanted to know the order of the kwargs<br>
> in the call.<br>
><br>
> But even apart from that backwards incompatibility I think this<br>
> feature is too rarely useful to make it the default behavior -- if<br>
> anything I want **kwargs to become faster</p>
<p dir="ltr">And PEP 422 is designed to make it easier to share a common __prepare__ method with different post processing.</p>
<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
> On Thu, Feb 28, 2013 at 2:15 AM, Eric Snow <<a href="mailto:ericsnowcurrently@gmail.com">ericsnowcurrently@gmail.com</a>> wrote:<br>
> > Just wanted to put out some feelers for the feasibility of these two<br>
> > features:<br>
> ><br>
> > * have the **kwargs param be an OrderedDict rather than a dict<br>
> > * have class definitions happen relative to an OrderedDict by default rather<br>
> > than a dict, and still overridable by a metaclass's __prepare__().<br>
> ><br>
> > Both of these will need OrderedDict in C, which is getting close (issue<br>
> > #16991).<br>
> ><br>
> > -eric<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Python-ideas mailing list<br>
> > <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
> > <a href="http://mail.python.org/mailman/listinfo/python-ideas">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
> --Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)<br>
> _______________________________________________<br>
> Python-ideas mailing list<br>
> <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/python-ideas">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</p>