Alexandru Mosoi a écrit :
(snip)
i somehow fixed the problem using:

  def __getattr__(self, attr):
        return
functools.partial(Base.__metaclass__.__getattr__(self.__class__,
attr), self)

however this looks ugly enough to look for another solution. i still
have one more question: why do I have to bind self? (without which
functions fail expecting an instance)

Because the partial type doesn't implement the descriptor protocol (which is implemented by function type to return a method).
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to