[docs] [issue31735] Documentation incorrectly states how descriptors are invoked

Henk-Jaap Wagenaar report at bugs.python.org
Tue Oct 10 04:59:44 EDT 2017


Henk-Jaap Wagenaar <wagenaarhenkjaap at gmail.com> added the comment:

I do think though that

"If d defines the method __get__(), then d.__get__(obj) is invoked according to the precedence rules listed below."

seems to contain a mistake in that it should have

d.__get__(obj, type(obj)) instead of d.__get__(obj)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31735>
_______________________________________


More information about the docs mailing list