removeall() in list

Paul Rubin http
Sat Jan 12 03:51:50 EST 2008


castironpi at gmail.com writes:

> > I'm writing an NxN observer pattern, mostly for my own personal
> > exploration.  Two threads -might- be calling 'Disconnect' at the same
> > time, and I can't even guarantee that the function runs properly.

I think the Pythonic way to do this is have the targets communicate
with the observers through queues rather than with callbacks.



More information about the Python-list mailing list