[Python-ideas] Preserving **kwargs order

Eric Snow ericsnowcurrently at gmail.com
Sat Apr 5 21:46:48 CEST 2014


On Apr 4, 2014 9:17 PM, "Terry Reedy" <tjreedy at udel.edu> wrote:
> Before being written, the key=value specification is unordered. The order
introduced by writing it out in linear text is spurious.
[snip]
> Wanting to preserve spurious order is wrong.  What I said before is that
if one has meaningful order, one should better use an ordered sequence,
both in the definition and call of the function, rather than an unordered
(or spuriously ordered) mapping.

Sometimes the order is not spurious.  That's the point of making sure we
enumerate valid use cases for this proposal.  Otherwise the cost to the
language isn't worth it.

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140405/168d0429/attachment.html>


More information about the Python-ideas mailing list