Skip to content

Instantly share code, notes, and snippets.

@agalera
Created September 23, 2016 09:21
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 agalera/fd7f1bb9d20870b11f0f7767a554816b to your computer and use it in GitHub Desktop.
Save agalera/fd7f1bb9d20870b11f0f7767a554816b to your computer and use it in GitHub Desktop.
test.py
import ipdb
class Clase2:
pass
class Clase1:
def __init__(self):
self.example = {}
@staticmethod
def callback():
print(self.example)
#ipdb.set_trace()
Clase2.callback = callback
Clase1.callback = callback
inst = Clase1()
Clase2.callback()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment