[New-bugs-announce] [issue9128] Parser module fails to validate class decorators correctly.

Mark Dickinson report at bugs.python.org
Wed Jun 30 20:11:42 CEST 2010

New submission from Mark Dickinson <dickinsm at gmail.com>:

Python 2.7rc2+ (trunk:82399M, Jun 30 2010, 17:10:13) 
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import parser
[35303 refs]
>>> parser.sequence2st(parser.suite("@deco\nclass A(): pass").totuple())
<parser.st object at 0x10045d310>
XXX undetected error
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
parser.ParserError: Expected node type 262, got 330.
[35347 refs]

Patch attached.

components: Extension Modules
files: parser_class_decorator.patch
keywords: patch
messages: 109002
nosy: mark.dickinson
priority: normal
severity: normal
status: open
title: Parser module fails to validate class decorators correctly.
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file17820/parser_class_decorator.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list