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
The parser module validates st instances that it builds from
list or tuple structures. This validation fails for parse
trees that include relative imports because it fails to correctly
count the dots that immediately follow the "from" token.
Here is a test and a patch.
This bug probably extends back to all Python 2 versions that support
relative import, but I have not checked it.
Fixing this has immediate value to me because the QPY package
depends on the parser module to convert list structures into st
instances. (In the long run, I wonder if the verification
part of the sequence2st() function could be made optional or dropped,
since the current pattern requires to parser module to be updated
every time the language grammer changes.)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: