Lawrence D’Oliveiro wrote:
Every function is already a descriptor.
Which you can see with a simple experiment:
>>> def f(self):
... print("self =", self)
...
>>> g = f.__get__(17, None)
>>> g
<bound method f of 17>
>>> g()
self = 17
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
