Steve Holden wrote:
.... Write a class that implements a __call__() method, and use an instance
> of that class as your callback. Then the data can be stored as the callback
> object's private instance data.

In fact, you needn't name the method __call__.  You can pass in
Holder().method if you have no other use for the instance of
your Holder instance.

--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to