Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Created April 26, 2013 18:50
Show Gist options
  • Save hub-cap/5469504 to your computer and use it in GitHub Desktop.
Save hub-cap/5469504 to your computer and use it in GitHub Desktop.
import time
class Foo(object):
@classmethod
def foo(cls):
print "ZOMG"
class Bar(object):
_foo = time.clock
@classmethod
def bar(cls):
print cls._foo
print cls._foo()
class Baz(Bar):
pass
Baz.bar()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment