Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SimpleEcho(WebSocket):
- times_played_since_reset = 0
- def handleMessage(self):
- global times_played_since_reset
- print times_played_since_reset
- class Foo(object):
- bar = 1
- >>> x = Foo()
- >>> y = Foo()
- >>> x.bar
- 1
- >>> y.bar
- 1
- >>> Foo.bar += 1
- >>> x.bar
- 2
- >>> y.bar
- 2
- >>> x.bar = 7
- >>> Foo.bar +=1
- >>> x.bar
- 7
- >>> y.bar
- 3
- class Foo(object):
- bar = [1]
- (Class Name).variable
- SimpleEcho.times_played_since_reset
Add Comment
Please, Sign In to add comment