summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-09-22 18:44:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-09-22 18:44:21 (GMT)
commit2c31a058eb719da8908ea9d9c2f1b748ecc7a4ca (patch)
tree8795a38ea15df04a9427f00c8ae826108bc7cc1e /Misc
parent0318a939dd0881b26b2ec7239cedd2faa58a4412 (diff)
downloadcpython-2c31a058eb719da8908ea9d9c2f1b748ecc7a4ca.zip
cpython-2c31a058eb719da8908ea9d9c2f1b748ecc7a4ca.tar.gz
cpython-2c31a058eb719da8908ea9d9c2f1b748ecc7a4ca.tar.bz2
SF patch #1031667: Fold tuples of constants into a single constant
Example: >>> import dis >>> dis.dis(compile('1,2,3', '', 'eval')) 0 0 LOAD_CONST 3 ((1, 2, 3)) 3 RETURN_VALUE
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 b87f128..3c2734b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 2.4 beta 1?
Core and builtins
-----------------
+- The bytecode optimizer now folds tuples of constants into a single
+ constant.
+
- PyLong_AsUnsignedLong[Mask] now support int objects as well.
Extension modules