Skip to content

Instantly share code, notes, and snippets.

@rmyers
Created April 26, 2013 19:19
Show Gist options
  • Save rmyers/5469686 to your computer and use it in GitHub Desktop.
Save rmyers/5469686 to your computer and use it in GitHub Desktop.
blah
def gen():
print 'foo'
class Test(object):
@classmethod
def _uuid(cls):
return gen()
@classmethod
def foo(cls):
if cls._uuid is not None:
print cls._uuid()
class B(Test):
_uuid = None
t=Test()
b=B()
t.foo()
b.foo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment