Using Pool map with a method of a class and a list

Peter Otten __peter__ at web.de
Wed Aug 7 12:15:14 EDT 2013


Joshua Landau wrote:
> On 7 August 2013 15:46, Peter Otten <__peter__ at web.de> wrote:

>> def make_instancemethod(inst, methodname):
>> return getattr(inst, methodname)
>> This is just getattr -- you can replace the two uses of
> make_instancemethod with getattr and delete this ;).

D'oh ;)


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /