summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-01-02 06:17:33 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-01-02 06:17:33 (GMT)
commitc34f8673a194180ab3b258e821f72f25514aa948 (patch)
tree756647bb00c7617ee8d2bca72ff91018b66d8965 /Misc
parent64585988af7277aa831c66b971fe726207b38cd1 (diff)
downloadcpython-c34f8673a194180ab3b258e821f72f25514aa948.zip
cpython-c34f8673a194180ab3b258e821f72f25514aa948.tar.gz
cpython-c34f8673a194180ab3b258e821f72f25514aa948.tar.bz2
Teach the peephole optimizer to fold simple constant expressions.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index af04ecf..eb40d97 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,9 @@ Core and builtins
- min() and max() now support key= arguments with the same meaning as in
list.sort().
+- The peephole optimizer now performs simple constant folding in expressions:
+ (2+3) --> (5).
+
Extension Modules
-----------------