→ trickyscope/
This commit is contained in:
parent
5ec1bf63e0
commit
1db5a8c585
1 changed files with 0 additions and 0 deletions
9
trickyscope/trickyscope.py
Normal file
9
trickyscope/trickyscope.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from __future__ import print_function
|
||||
|
||||
class TrickyScope:
|
||||
a = 1
|
||||
b = [a for i in range(1)]
|
||||
|
||||
# Does not work with Python 3:
|
||||
print(type(TrickyScope.b))
|
||||
assert TrickyScope.b == [1]
|
Loading…
Add table
Add a link
Reference in a new issue