Movatterモバイル変換


[0]ホーム

URL:


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

Nick Coghlanncoghlan at gmail.com
Tue Nov 7 22:07:12 EST 2017


On 8 November 2017 at 07:19, Evpok Padding <evpok.padding at gmail.com> wrote:> On 7 November 2017 at 21:47, Chris Barker <chris.barker at noaa.gov> wrote:>> 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 ?~27 calendar years of anecdotal evidence across a multitude of CPythonAPI behaviours (as well as API usage in other projects).Other implementation developers don't say "CPython's runtime behaviouris the real Python specification" for the fun of it - they say itbecause "my code works on CPython, but it does the wrong thing on yourinterpreter, so I'm going to stick with CPython" is a real barrier toend user adoption, no matter what the language specification says.Blaming users for not writing portable code doesn't achieve anythingin that scenario - it just puts an extra road block in the way ofthose users trying out the alternative interpreter implementation.Cheers,Nick.-- Nick Coghlan   |ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp