4 ms·
Note that the descriptor protocol itself is not causing this behavior. What actually happens here is that functions are descriptors (they implement __get__()) t
by rbistolfi 10y 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 https://wiki.python.org/moin/FromFunctionToMethod