We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_CHECK_ATTR_CLASS calls sym_set_const(owner, type) without installing a type watcher. If the type mutates, the executor isn't invalidated.
_CHECK_ATTR_CLASS
sym_set_const(owner, type)
cpython/Python/optimizer_bytecodes.c
Lines 224 to 228 in a059e85
_GUARD_TYPE_VERSION
Lines 246 to 250 in a059e85
Found by @Fidget-Spinner in #148394 (comment)
CPython main branch
Linux
Bug report
Bug description:
_CHECK_ATTR_CLASScallssym_set_const(owner, type)without installing a type watcher. If the type mutates, the executor isn't invalidated.cpython/Python/optimizer_bytecodes.c
Lines 224 to 228 in a059e85
Should install a watcher like
_GUARD_TYPE_VERSIONdoes:cpython/Python/optimizer_bytecodes.c
Lines 246 to 250 in a059e85
Found by @Fidget-Spinner in #148394 (comment)
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
_CHECK_ATTR_CLASS#148399