How can I refer to the currently being defined class?
class A(object):
# how can I use A here?
What I need to write is
class A(object):
@some_decorator(A)
@staticmethod
def foo():
pass
some_decorator
registers an event listener that will trigger on some interaction with an A
object. The A
class itself needs to respond to these events in a way that interacts with private (__
mangled) data.