S
Simon Pickles
Hi,
I have a stackless python app, using twisted in parts (.internet and
..adbapi).
I need a little help getting pythonic after years of c++ hell.
I'd like to use a system of events and observers, like c++ boost.signal.
I'd like to be able to subscribe multiple callbacks to a single function
and cal them all using something like:
event.invoke("some data to send with invocation")
I'm thinking twisted callbacks do this:
def observe(self, f);
self.event.addcallback(f)
Are there other ways?
Thanks
Si
I have a stackless python app, using twisted in parts (.internet and
..adbapi).
I need a little help getting pythonic after years of c++ hell.
I'd like to use a system of events and observers, like c++ boost.signal.
I'd like to be able to subscribe multiple callbacks to a single function
and cal them all using something like:
event.invoke("some data to send with invocation")
I'm thinking twisted callbacks do this:
def observe(self, f);
self.event.addcallback(f)
Are there other ways?
Thanks
Si