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

2017年11月07日 12:50:46 -0800

On Tue, Nov 7, 2017 at 11:50 AM, Tim Peters <[email protected]> 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!
And similarly, having order preserved only until a delete is going to cause
bugs in people's code that are less than careful :-( -- and that's most of
us.
-CHB
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[email protected]
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to