[issue46561] Descriptor resolution should own arguments passed to descriptors

Maxwell Bernstein report at bugs.python.org
Fri Jan 28 02:06:14 EST 2022


New submission from Maxwell Bernstein <tekk.nolagi at gmail.com>:

Currently the descriptor (self) argument to __get__ is passed borrowed, since _PyType_LookupId returns a borrowed reference (see _PyObject_LookupSpecial and lookup_maybe_method in Objects/typeobject.c). This should instead own the reference.

----------
messages: 411978
nosy: tekknolagi
priority: normal
severity: normal
status: open
title: Descriptor resolution should own arguments passed to descriptors
versions: Python 3.10, Python 3.11, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46561>
_______________________________________


More information about the Python-bugs-list mailing list