classification
Title: parser module failure on valid try/except/finally blocks
Type: behavior Stage:
Components: Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, kaiw
Priority: normal Keywords:

Created on 2008-12-04 17:22 by kaiw, last changed 2008-12-05 12:09 by georg.brandl. This issue is now closed.

Files
File name Uploaded Description Edit
parser-testcase.py kaiw, 2008-12-04 17:22 Testcase
Messages (2)
msg76900 - (view) Author: Kai Willadsen (kaiw) Date: 2008-12-04 17:22
Using the parser module to create a parse tree succeeds, but a
subsequent tuple2ast fails, when parsing valid try/except/finally (and
try/except/else/finally) blocks. parser.tuple2ast fails with:
  parser.ParserError: Illegal number of children for try/finally node.
msg77008 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-12-05 12:09
Fixed in r67576, will be ported to all branches.
History
Date User Action Args
2008-12-05 12:09:56georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg77008
nosy: + georg.brandl
2008-12-04 17:22:09kaiwcreate