Skip to content

Instantly share code, notes, and snippets.

@robotlolita
Created Oct 12, 2010
Embed
What would you like to do?
class Foo(object):
@classmethod
def bar(cls, text):
print text
>>> Foo.bar("stuff")
stuff
>>> local_bar = Foo.bar
>>> local_bar("stuff")
stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment