[issue43770] Rework C types initialization
STINNER Victor
report at bugs.python.org
Thu Apr 8 05:37:17 EDT 2021
STINNER Victor <vstinner at python.org> added the comment:
PR 25275: this is a subtle difference if PyTypeObject.tp_setattro is set statically to PyObject_GenericSetAttr() or if it's inherited by PyType_Ready().
Reference (master)::
* BaseException.__dict__['__setattr__'] = <slot wrapper '__setattr__' of 'BaseException' objects>
* BaseException.__setattr__ = <slot wrapper '__setattr__' of 'BaseException' objects>
With the PR:
* no '__setattr___' in BaseException.__dict__
* BaseException.__setattr__ = <slot wrapper '__setattr__' of 'object' objects>
Because of that, doctest.DocTestFinder().find(builtins) returns less items, and so test_doctest fails.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43770>
_______________________________________
More information about the Python-bugs-list
mailing list