[issue11205] Evaluation order of dictionary display is different from reference manual.
Raymond Hettinger
report at bugs.python.org
Sun Feb 13 22:51:10 CET 2011
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
<sigh> If only a test had been checked-in eight years ago ...
It looks like a number of things have to be changed in order to bring behavior back to what the docs promise. Dict literals and dict comprehensions need to be fixed in both the compile.py and compile.c. To avoid introducing a ROT_TWO, the store STORE_MAP and MAP_ADD opcodes need minor modifications (just switch the u and w variable assignments).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11205>
_______________________________________
More information about the Python-bugs-list
mailing list