Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue1144] parsermodule validation out of sync with Grammar

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Sep 11, 2007, 4:05 AM

Post #1 of 3 (250 views)
Permalink
[issue1144] parsermodule validation out of sync with Grammar

New submission from David Binger:

>>> parser.sequence2st(parser.suite("class A(object): pass").tolist())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
parser.ParserError: Expected node type 326, got 329.

---

The Grammar in python 3 uses "arglist" instead of "testlist"
for class definitions. The parsermodule's validate_class()
calls validate_testlist() where it should now be calling
validate_arglist().

----------
components: Library (Lib)
messages: 55818
nosy: dbinger
severity: normal
status: open
title: parsermodule validation out of sync with Grammar
type: behavior
versions: Python 3.0

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1144>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Sep 11, 2007, 4:05 AM

Post #2 of 3 (227 views)
Permalink
[issue1144] parsermodule validation out of sync with Grammar [In reply to]

New submission from David Binger:

>>> parser.sequence2st(parser.suite("class A(object): pass").tolist())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
parser.ParserError: Expected node type 326, got 329.

---

The Grammar in python 3 uses "arglist" instead of "testlist"
for class definitions. The parsermodule's validate_class()
calls validate_testlist() where it should now be calling
validate_arglist().

----------
components: Library (Lib)
messages: 55818
nosy: dbinger
severity: normal
status: open
title: parsermodule validation out of sync with Grammar
type: behavior
versions: Python 3.0

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1144>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Sep 17, 2007, 2:53 AM

Post #3 of 3 (228 views)
Permalink
[issue1144] parsermodule validation out of sync with Grammar [In reply to]

Changes by Sean Reifschneider:


----------
priority: -> normal

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1144>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.