summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2002-12-16 13:54:02 (GMT)
committerGustavo Niemeyer <gustavo@niemeyer.net>2002-12-16 13:54:02 (GMT)
commit78429a6aa6bb4f8527f0c6be678555ef26b62d19 (patch)
treee733c09ec2db70d79822c60895286ffacd97e003 /Misc
parentc389ec8d55efe0a812906ec68cf5c690290b3428 (diff)
downloadcpython-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 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 12df9ec..dea62dd 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -331,6 +331,10 @@ Core and builtins
- sys.exit() inadvertently allowed more than one argument.
An exception will now be raised if more than one argument is used.
+- Changed evaluation order of dictionaries to conform to the general
+ left to right evaluation order rule. Now {f1(): f2()} will evaluate
+ f1 first.
+
Extension modules
-----------------