[Python-ideas] Proto-PEP: Preserving the order of **kwargs in a function.
Guido van Rossum
guido at python.org
Sun Apr 6 19:37:30 CEST 2014
On Sun, Apr 6, 2014 at 9:34 AM, Eric Snow <ericsnowcurrently at gmail.com>wrote:
>
> On Apr 6, 2014 4:39 AM, "Nick Coghlan" <ncoghlan at gmail.com> wrote:
> > There *is* a connection here: this needs to play nice with the ordered
> > kwargs in order to handle the pass-through case correctly.
> >
> > The guarantee that the order of the supplied mapping (minus any
> > entries that map to named parameters) will be preserved needs to be
> > made explicit.
>
> You're right. It's already implied by OrderedDict. However the point
> *should* be explicit.
>
Somehow the specification section in the PEP doesn't explicitly say it, but
I presume that the type of kwargs will change from dict to OrderedDict?
That seems simple enough, but the proof is in the pudding. How simple was
it to implement? How did the speed compare? Until we have those answers we
shouldn't accept this PEP.
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140406/4feba286/attachment.html>
More information about the Python-ideas
mailing list