[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,