[issue23317] Incorrect description of descriptor invocation in Python Language Reference

2021-12-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think we can leave this as-is. It does a reasonable job of communicating where the descriptor is found and the arguments used when it is called. Marking this as out of date because later in the howto guide there is a precise pure python equivalent for

[issue23317] Incorrect description of descriptor invocation in Python Language Reference

2021-12-03 Thread Irit Katriel
Irit Katriel added the comment: See also issue20751. -- nosy: +iritkatriel, rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue23317] Incorrect description of descriptor invocation in Python Language Reference

2015-01-26 Thread Justin Eldridge
Justin Eldridge added the comment: Ah, I see how writing a description of this which is both concise and precise would be difficult, especially for Python 2. But the Class Binding description is correct, since if the __get__ method is *not* defined on the type (of the descriptor), the

[issue23317] Incorrect description of descriptor invocation in Python Language Reference

2015-01-25 Thread Justin Eldridge
New submission from Justin Eldridge: The section titled Invoking Descriptors in the Python Language Reference [1] says: Class Binding If binding to a new-style class, A.x is transformed into the call: A.__dict__['x'].__get__(None, A). This suggests that __get__ is looked

[issue23317] Incorrect description of descriptor invocation in Python Language Reference

2015-01-25 Thread R. David Murray
R. David Murray added the comment: I believe that you are correct: special methods are looked up on the type, and this is assumed implicitly in the Class Binding description. (This was not 100% true in python2, but it is in current python3.) But the Class Binding description is correct,