Skip to content

Instantly share code, notes, and snippets.

@JoergWMittag
Created April 26, 2012 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoergWMittag/2499065 to your computer and use it in GitHub Desktop.
Save JoergWMittag/2499065 to your computer and use it in GitHub Desktop.
Python does have open classes
class A(object):
def p(__self__):
print("1")
a = A()
a.p()
def p2(__self__):
print("2")
A.p = p2
a.p()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment