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.

classification
Title: Handle ASDLSyntaxErrors gracefully
Type: behavior Stage:
Components: Build Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, thomaslee
Priority: normal Keywords: patch

Created on 2008-04-30 12:08 by thomaslee, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fix-asdl-errors.patch thomaslee, 2008-04-30 12:07 A patch to correct the handling of ASDL syntax errors
Messages (3)
msg65999 - (view) Author: Thomas Lee (thomaslee) (Python committer) Date: 2008-04-30 12:06
The current code in Parser/asdl.py doesn't handle syntax errors very
well. A minor problem to be sure, since the net result is the same (i.e.
build fails), but the error message being displayed is entirely
unhelpful to the developer.

The attached patch will display the error message as was seemingly intended.

This probably affects earlier versions (including python-trunk), but I
haven't tested.
msg66020 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-04-30 20:16
Some comments:
- Since you check for a false mod before calling check(), the check in
check() will not be reached.
- The error print seems to be already in trunk.
msg85893 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-04-12 11:34
Committed a similar patch in r71505.
History
Date User Action Args
2022-04-11 14:56:33adminsetgithub: 46977
2009-04-12 11:34:21georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg85893
2009-04-07 22:52:39georg.brandlsetassignee: georg.brandl
2008-04-30 20:16:19georg.brandlsetnosy: + georg.brandl
messages: + msg66020
2008-04-30 12:08:04thomasleecreate