Description
opened
on Apr 12, 2026Bug report
Bug description:
see discussion in #148124 (comment)
abc.register will change the tp_flags but don't update the type version, so JIT won't invalid the old trace:
Lines 601 to 603 in 03d2f03
| _PyType_SetFlagsRecursive((PyTypeObject *)subclass, | |
| COLLECTION_FLAGS, | |
| collection_flag); |
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- gh-148450:
abc.registerneeds to updatetype_versionwhentp_flagsis changed. #148623 - [3.15] gh-148450:
abc.registerneeds to updatetype_versionwhentp_flagsis changed (GH-148623) #150300 - [3.13] gh-148450: abc.register needs to update type_version when tp_flags is changed (GH-148623) #150307
- [3.14] gh-148450: abc.register needs to update type_version when tp_flags is changed (GH-148623) #150308
Metadata
Metadata
Assignees
Projects
No projects
Milestone
No milestone
Relationships
None yet
Development
No branches or pull requests