1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# --- path: foo/bar.py --- BAR = 42 # --- path: test.py --- import foo.bar foo.bar.BAR # ^ defined: 7 # ^ defined: 7, 3 # ^ defined: 3 bar # ^ defined: