This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dbinger
Recipients christian.heimes, dbinger, fdrake, gvanrossum
Date 2007-11-15.11:46:13
SpamBayes Score 0.00398979
Marked as misclassified No
Message-id <1195127174.01.0.498524968393.issue1144@psf.upfronthosting.co.za>
In-reply-to
Content
The one line patch below makes
"import parser; parser.sequence2st(parser.suite("class A(object): 
pass").tolist())"
work.  It puts the parsermodule's validation back in sync
with the Python3 grammar for this rule of the grammar.

This bug is a serious problem for me.

Index: Modules/parsermodule.c
===================================================================
--- Modules/parsermodule.c	(revision 58978)
+++ Modules/parsermodule.c	(working copy)
@@ -992,7 +992,7 @@
     if (res) {
 	if (nch == 7) {
 		res = ((validate_lparen(CHILD(tree, 2)) &&
-			validate_testlist(CHILD(tree, 3)) &&
+			validate_arglist(CHILD(tree, 3)) &&
 			validate_rparen(CHILD(tree, 4))));
 	}
 	else if (nch == 6) {
History
Date User Action Args
2007-11-15 11:46:14dbingersetspambayes_score: 0.00398979 -> 0.00398979
recipients: + dbinger, gvanrossum, fdrake, christian.heimes
2007-11-15 11:46:14dbingersetspambayes_score: 0.00398979 -> 0.00398979
messageid: <1195127174.01.0.498524968393.issue1144@psf.upfronthosting.co.za>
2007-11-15 11:46:13dbingerlinkissue1144 messages
2007-11-15 11:46:13dbingercreate