[Pyrex] callback

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Aug 19 05:39:14 CEST 2003


> my problem is that the i need user data to be passed into status_callback
> which gets passed back to the python callback.

No, you don't. You just need to pass a suitable callable
object, such as a bound method or nested function which
has access to the required data, as the callback function.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list