diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2002-12-16 13:54:02 (GMT) |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2002-12-16 13:54:02 (GMT) |
commit | 78429a6aa6bb4f8527f0c6be678555ef26b62d19 (patch) | |
tree | e733c09ec2db70d79822c60895286ffacd97e003 /Lib/compiler | |
parent | c389ec8d55efe0a812906ec68cf5c690290b3428 (diff) | |
download | cpython-78429a6aa6bb4f8527f0c6be678555ef26b62d19.zip cpython-78429a6aa6bb4f8527f0c6be678555ef26b62d19.tar.gz cpython-78429a6aa6bb4f8527f0c6be678555ef26b62d19.tar.bz2 |
Fixing bug
[#448679] Left to right
* Python/compile.c
(com_dictmaker): Reordered evaluation of dictionaries to follow strict
LTR evaluation.
* Lib/compiler/pycodegen.py
(CodeGenerator.visitDict): Reordered evaluation of dictionaries to
follow strict LTR evaluation.
* Doc/ref/ref5.tex
Documented the general LTR evaluation order idea.
* Misc/NEWS
Documented change in evaluation order of dictionaries.
Diffstat (limited to 'Lib/compiler')
-rw-r--r-- | Lib/compiler/pycodegen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py index a0aa73a..ac978c0 100644 --- a/Lib/compiler/pycodegen.py +++ b/Lib/compiler/pycodegen.py @@ -1129,9 +1129,9 @@ class CodeGenerator: self.emit('SET_LINENO', lineno2) lineno = lineno2 self.emit('DUP_TOP') - self.visit(v) - self.emit('ROT_TWO') self.visit(k) + self.visit(v) + self.emit('ROT_THREE') self.emit('STORE_SUBSCR') class NestedScopeMixin: |