[Python-checkins] r52621 - in python/trunk: Lib/test/test_grammar.py Misc/NEWS Python/ast.c
neal.norwitz
python-checkins at python.org
Sat Nov 4 20:25:22 CET 2006
Author: neal.norwitz
Date: Sat Nov 4 20:25:22 2006
New Revision: 52621
Modified:
python/trunk/Lib/test/test_grammar.py
python/trunk/Misc/NEWS
python/trunk/Python/ast.c
Log:
Bug #1588287: fix invalid assertion for `1,2` in debug builds.
Will backport
Modified: python/trunk/Lib/test/test_grammar.py
==============================================================================
--- python/trunk/Lib/test/test_grammar.py (original)
+++ python/trunk/Lib/test/test_grammar.py Sat Nov 4 20:25:22 2006
@@ -747,6 +747,8 @@
x = `x`
x = `1 or 2 or 3`
+ self.assertEqual(`1,2`, '(1, 2)')
+
x = x
x = 'x'
x = 123
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sat Nov 4 20:25:22 2006
@@ -12,6 +12,8 @@
Core and builtins
-----------------
+- Bug #1588287: fix invalid assertion for `1,2` in debug builds.
+
- Bug #1576657: when setting a KeyError for a tuple key, make sure that
the tuple isn't used as the "exception arguments tuple".
Modified: python/trunk/Python/ast.c
==============================================================================
--- python/trunk/Python/ast.c (original)
+++ python/trunk/Python/ast.c Sat Nov 4 20:25:22 2006
@@ -532,6 +532,7 @@
|| TYPE(n) == listmaker
|| TYPE(n) == testlist_gexp
|| TYPE(n) == testlist_safe
+ || TYPE(n) == testlist1
);
seq = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena);
More information about the Python-checkins
mailing list