mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
As illustrated when running the python file, the non qualified reads in the `use` method all refer to the global variables, whereas `ex = func(baz)` are to the things defined on the class. The important part of the .expected changes is that the _global_ variable `bar` is used inside the function, whereas it's the local variable for `foo` (on class scope) that is used inside the function (which is wrong).
27 lines
1.6 KiB
Plaintext
27 lines
1.6 KiB
Plaintext
| Global Variable C | test.py:0:0:0:0 | Module test |
|
|
| Global Variable MyClass | in_class.py:0:0:0:0 | Module in_class |
|
|
| Global Variable NameError | in_class.py:0:0:0:0 | Module in_class |
|
|
| Global Variable __name__ | in_class.py:0:0:0:0 | Module in_class |
|
|
| Global Variable __name__ | test.py:0:0:0:0 | Module test |
|
|
| Global Variable __package__ | in_class.py:0:0:0:0 | Module in_class |
|
|
| Global Variable __package__ | test.py:0:0:0:0 | Module test |
|
|
| Global Variable bar | in_class.py:0:0:0:0 | Module in_class |
|
|
| Global Variable base | test.py:0:0:0:0 | Module test |
|
|
| Global Variable foo | in_class.py:0:0:0:0 | Module in_class |
|
|
| Global Variable func0 | test.py:0:0:0:0 | Module test |
|
|
| Global Variable func1 | test.py:0:0:0:0 | Module test |
|
|
| Global Variable func2 | test.py:0:0:0:0 | Module test |
|
|
| Global Variable func3 | test.py:0:0:0:0 | Module test |
|
|
| Global Variable func4 | test.py:0:0:0:0 | Module test |
|
|
| Global Variable func5 | test.py:0:0:0:0 | Module test |
|
|
| Global Variable func6 | test.py:0:0:0:0 | Module test |
|
|
| Global Variable global0 | test.py:0:0:0:0 | Module test |
|
|
| Global Variable global1 | test.py:0:0:0:0 | Module test |
|
|
| Global Variable global_local | test.py:0:0:0:0 | Module test |
|
|
| Global Variable mc | in_class.py:0:0:0:0 | Module in_class |
|
|
| Global Variable object | in_class.py:0:0:0:0 | Module in_class |
|
|
| Global Variable print | in_class.py:0:0:0:0 | Module in_class |
|
|
| Global Variable range | test.py:0:0:0:0 | Module test |
|
|
| Global Variable seq | test.py:0:0:0:0 | Module test |
|
|
| Global Variable use_in_loop | test.py:0:0:0:0 | Module test |
|