[issue30469] Inconsistent Execution of Generic Descriptor Attributes

2021-03-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30469] Inconsistent Execution of Generic Descriptor Attributes

2021-03-05 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue30469] Inconsistent Execution of Generic Descriptor Attributes

2017-05-24 Thread Eryk Sun
Eryk Sun added the comment: 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

[issue30469] Inconsistent Execution of Generic Descriptor Attributes

2017-05-24 Thread Ryan Morshead
Ryan Morshead added the comment: Is there a reason that `call_method` is not used in `slot_tp_descr_get` -- ___ Python tracker ___

[issue30469] Inconsistent Execution of Generic Descriptor Attributes

2017-05-24 Thread Ryan Morshead
New submission from Ryan Morshead: When the `__get__`, `__set__`, or `__delete__` attribute of a descriptor is not a method, and is instead a generic callable, the first argument of that callable is inconsistent: class Callable(object): def __call__(self, first, *args,