dunder-docs (was Python is DOOMED! Again!)
Gregory Ewing
greg.ewing at canterbury.ac.nz
Wed Feb 4 01:04:53 EST 2015
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
More information about the Python-list
mailing list