Skip to content

Commit d5ea90e

Browse files
committed
Add missing file functional_tests/attributes.py.
1 parent ed4ca2e commit d5ea90e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

functional_tests/attributes.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class Foo:
2+
bar = 5
3+
print(bar)
4+
5+
print('---')
6+
7+
print(Foo.bar)
8+
9+
f = Foo()
10+
print(f.bar)
11+
12+
f.bar = 6
13+
print(Foo.bar)
14+
print(f.bar)
15+
16+
Foo.bar = 7
17+
print(Foo.bar)
18+
print(f.bar)

0 commit comments

Comments
 (0)