This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Ryan Morshead, eryksun
Date 2017-05-25.03:14:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495682042.91.0.260798139526.issue30469@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like slot_tp_descr_get bypasses call_method in order to unset tp->tp_descr_get for descriptors that don't define __get__. I don't know where that's an issue. If a class doesn't define __get__, its tp_descr_get slot should already be NULL. 

That said, I don't see why it's calling _PyType_LookupId directly instead of lookup_maybe. Using lookup_maybe would bind __get__ if it's a descriptor, and we want that, no? Then slot_tp_descr_get wouldn't have to manually hack `self` into the call, which is wrong in this case.
History
Date User Action Args
2017-05-25 03:14:02eryksunsetrecipients: + eryksun, Ryan Morshead
2017-05-25 03:14:02eryksunsetmessageid: <1495682042.91.0.260798139526.issue30469@psf.upfronthosting.co.za>
2017-05-25 03:14:02eryksunlinkissue30469 messages
2017-05-25 03:14:02eryksuncreate