Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. from typing import NamedTuple
  2.  
  3. class Foo(object):
  4. y : int = 4
  5.  
  6.  
  7. f1 = Foo()
  8. f2 = Foo()
  9.  
  10. Foo.y = 7
  11.  
  12. print(f1.y) # 7
  13. print(f2.y) # 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement