multiprocessing question/error

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Jan 17 05:42:46 EST 2009


En Sat, 17 Jan 2009 14:14:37 -0200, Eduardo Lenz <lenz at joinville.udesc.br>  
escribió:

> Another question: is it possible to
> change a bound method to a function on the fly ? I was wondering if  
> something
> like class.__dict__["function_name"] could do the job.

Exactly.
Or, if you already have the method, use its im_func attribute to obtain  
the original function. BTW, im_self is the "self" argument.

-- 
Gabriel Genellina




More information about the Python-list mailing list