forked from numirias/semshi
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: python 3.12 parsing error, according to PEP-709
The previous code raised an error when parsing list/set/dict comprehensions; "IndexError: pop from empty list". current_table = self._table_stack.pop() # <--- HERE As per PEP-0709: The symtable module will no longer produce child symbol tables for comprehensions (but excluding generator expressions); instead, the comprehension’s locals will be included in the parent function’s symbol table and scope.
- Loading branch information
Showing
2 changed files
with
80 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters