homepage

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.

Author rcmiller
Recipients
Date 2006年04月24日.23:12:04
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This patch raises an IndentationError rather than a
generic "invalid syntax" error for unexpected
indentation. Code to do this was already in
pythonrun.c:err_input() but was not being reached due
to a failure to pass the INDENT token in the perrdetail
structure. The patch also adds tests for the 3 kinds
of indentation errors (unexpected indent, no indent
where required, invalid outdent level) to test_syntax.py .
History
Date User Action Args
2007年08月23日 15:48:29adminlinkissue1475845 messages
2007年08月23日 15:48:29admincreate

AltStyle によって変換されたページ (->オリジナル) /