|
|
|
|
|
by rbistolfi
3697 days ago
|
|
Note that the descriptor protocol itself is not causing this behavior. What actually happens here is that functions are descriptors (they implement __get__()) that generate the instancemethod object on attribute access.
More info here: https://wiki.python.org/moin/FromFunctionToMethod |
|