-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[infer/python][2/X] Introducing "local" vs "global" name tracking
Summary: Python has a two level namespace: - anything in the "current" scope is managed using `LOAD/STORE_NAME`. If the current scope is the toplevel one, `_NAME` is used instead of `_GLOBAL`. - anything in the "global" (toplevel of a module) scope is managed using `LOAD/STORE_GLOBAL` if not in the toplevel scope This diff introduces the correct tracking of symbols depending on their scope. Reviewed By: davidpichardie Differential Revision: D46646267 fbshipit-source-id: 10ecbf4ef0442aafbdc8b76d5ade41b4e361b353
- Loading branch information
1 parent
954e807
commit ca90751
Showing
3 changed files
with
78 additions
and
60 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
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