[issue46903] Crash when setting attribute with string subclass as the name (--with-pydebug)
Ronald Oussoren
report at bugs.python.org
Wed Mar 2 16:33:41 EST 2022
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
A hard crash seems wrong to me, and I'm not convinced yet that checking that the type of the attribute name is exactly string is correct.
Found while debugging a crash in PyObjC's testsuite, PyObjC uses a subclass of str to represent Objective-C strings. Using such instances works fine in practice, but causes a crash in a --with-pydebug build due to this assertion.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46903>
_______________________________________
More information about the Python-bugs-list
mailing list