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.18:50:29
SpamBayes Score 0.065818205
Marked as misclassified No
Message-id <1195152629.67.0.734538650235.issue1144@psf.upfronthosting.co.za>
In-reply-to
Content
Okay, here is the whole thing with a unittest that exposes the problem.

Index: Lib/test/test_parser.py
===================================================================
--- Lib/test/test_parser.py     (revision 58984)
+++ Lib/test/test_parser.py     (working copy)
@@ -136,6 +136,7 @@
 
     def test_class_defs(self):
         self.check_suite("class foo():pass")
+        self.check_suite("class foo(object):pass")
 
     def test_import_from_statement(self):
         self.check_suite("from sys.path import *")
Index: Modules/parsermodule.c
===================================================================
--- Modules/parsermodule.c      (revision 58984)
+++ 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 18:50:29dbingersetspambayes_score: 0.0658182 -> 0.065818205
recipients: + dbinger, gvanrossum, fdrake, christian.heimes
2007-11-15 18:50:29dbingersetspambayes_score: 0.0658182 -> 0.0658182
messageid: <1195152629.67.0.734538650235.issue1144@psf.upfronthosting.co.za>
2007-11-15 18:50:29dbingerlinkissue1144 messages
2007-11-15 18:50:29dbingercreate