En Sat, 17 Jan 2009 14:14:37 -0200, Eduardo Lenz <l...@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

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to