SHARE
TWEET

Untitled

a guest Jun 26th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top