You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.
This is proving to be a common error causing the Python AST module not to parse the source file, but it should be easily fixable using the reindent.py script/module included with the Python standard distribution.
The text was updated successfully, but these errors were encountered:
Is the source code valid or invalid? If it's the former why does the AST module fail? If it's the latter I think it should fail, we shouldn't be correcting invalid code.
Is invalid in Python 2/3 and valid in Python 1 (Python2 produces a SyntaxError and Python3 a TabError). I don't know how people run that code actually if they're using a version of Python from the last decade.
AFAIK I got the impression from some early meetings that we should try to parse code with errors if we can get something out of it and in this case it would be easy; I don't know if that's still an objective.
In any case I was very tempted to mark this as feature but I would prefer to ear some opinions before doing that again.
This is proving to be a common error causing the Python AST module not to parse the source file, but it should be easily fixable using the
reindent.py
script/module included with the Python standard distribution.The text was updated successfully, but these errors were encountered: