Message294428
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. |
|
Date |
User |
Action |
Args |
2017-05-25 03:14:02 | eryksun | set | recipients:
+ eryksun, Ryan Morshead |
2017-05-25 03:14:02 | eryksun | set | messageid: <1495682042.91.0.260798139526.issue30469@psf.upfronthosting.co.za> |
2017-05-25 03:14:02 | eryksun | link | issue30469 messages |
2017-05-25 03:14:02 | eryksun | create | |
|