diff options
author | Raymond Hettinger <python@rcn.com> | 2005-01-02 06:17:33 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-01-02 06:17:33 (GMT) |
commit | c34f8673a194180ab3b258e821f72f25514aa948 (patch) | |
tree | 756647bb00c7617ee8d2bca72ff91018b66d8965 /Misc | |
parent | 64585988af7277aa831c66b971fe726207b38cd1 (diff) | |
download | cpython-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 ----------------- |