Skip to content
Snippets Groups Projects
Select Git revision
  • 5f7e8dc176661b49e12a0d8425101799ff176d19
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

list_index.py

Blame
  • class_store.py 182 B
    # store to class vs instance
    
    class C:
        pass
    
    c = C()
    c.x = 1
    print(c.x)
    C.x = 2
    C.y = 3
    print(c.x, c.y)
    print(C.x, C.y)
    print(C().x, C().y)
    c = C()
    print(c.x)
    c.x = 4
    print(c.x)