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.

Title: parser module failure on valid try/except/finally blocks
Type: behavior Stage:
Components: Versions: Python 2.5
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 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit 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.
Date User Action Args
2022-04-11 14:56:42adminsetgithub: 48779
2008-12-05 12:09:56georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg77008
nosy: + georg.brandl
2008-12-04 17:22:09kaiwcreate