Skip to content

Instantly share code, notes, and snippets.

@elben
Created April 17, 2010 02:26
Show Gist options
  • Save elben/369199 to your computer and use it in GitHub Desktop.
Save elben/369199 to your computer and use it in GitHub Desktop.
@singleton
class Counter:
def __init__(self):
self.count = 0
def inc(self):
self.count += 1
print type(Counter) # <type 'function'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment