Message323479
There is a great HowTo document for descriptors https://github.com/python/cpython/blob/master/Doc/howto/descriptor.rst
But it doesn't even mention the __set_name__ method which was added in py3. And it lists the descriptor protocol without that method as if it is the full protocol. The only way to know about that method is to go to the link for any other method and then you'll see that there is a __set_name__.
I think the guide sholud be updated to include at least information about existence of __set_name__. |
|
Date |
User |
Action |
Args |
2018-08-13 12:36:26 | MarSoft | set | recipients:
+ MarSoft, docs@python |
2018-08-13 12:36:26 | MarSoft | set | messageid: <1534163786.32.0.56676864532.issue34394@psf.upfronthosting.co.za> |
2018-08-13 12:36:26 | MarSoft | link | issue34394 messages |
2018-08-13 12:36:26 | MarSoft | create | |
|