Message241365
| Author |
ionelmc |
| Recipients |
Claudiu.Popa, christian.heimes, ethan.furman, ionelmc, llllllllll |
| Date |
2015年04月17日.20:41:58 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1429303318.86.0.554307722113.issue23990@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ethan, those sections you have linked to have nothing to do with special methods that are descriptors, or behaviour regarding descriptors.
As seen in this example, descriptors are working even for special methods:
>>> class B:
... @property
... def __call__(self):
... return lambda: 1
...
>>> b = B()
>>> b()
1 |
|