[Python-Dev] The current dict is not an "OrderedDict"

Evpok Padding evpok.padding at gmail.com
Tue Nov 7 16:19:56 EST 2017


On 7 November 2017 at 21:47, Chris Barker <chris.barker at noaa.gov> wrote:

> On Tue, Nov 7, 2017 at 11:50 AM, Tim Peters <tim.peters at gmail.com> wrote:
>
>> Is it worth guaranteeing that will always "work" (as intended)?  Not
>> to me, but I do have code that relies on it now -
>
>
> This is critically important -- no one looks at the language spec to
> figure out how something works -- they try it, and if it works assume it
> will continue to work.
>
> if dict order is preserved in cPython , people WILL count on it!
>

I won't, and if people do and their code break, they'll have only
themselves to blame.
Also, what proof do you have of that besides anecdotal evidence ?

E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171107/8a4086db/attachment.html>


More information about the Python-Dev mailing list