Steven D'Aprano wrote:
Gregory Ewing wrote:

If things worked the way you want, it would be
impossible to store a function in an instance
attribute and get it out again *without* it
being treated as a method
>
Not impossible, just inconvenient... the solution is to use a custom descriptor

But then it's not a plain function any more. Obviously
you can wrap your function in something else, but
that's the "nuisance" I was talking about.

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

Reply via email to