Skip Montanaro <skip.montan...@gmail.com> writes:

>             underlying = getattr(SomeOtherClass, a)
>             def _meth(self, *args):
>                 return underlying(self._instance, *args)

Does

    underlying = getattr(SomeOtherClass, a)
    def _meth(self, *args, _underlying=underlying):
        return _underlying(self._instance, *args)

help?

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  |                 -- Fortunato Depero, 1929.

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

Reply via email to