# Bug report ### Bug description: see discussion in https://github.com/python/cpython/pull/148124#discussion_r3069278196 `abc.register` will change the `tp_flags` but don't update the `type version`, so JIT won't invalid the old trace: https://github.com/python/cpython/blob/03d2f035d6dcfeee0c39b4b8a3ddb4dda01cddb6/Modules/_abc.c#L601-L603 ### CPython versions tested on: CPython main branch ### Operating systems tested on: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-148623 * gh-150300 * gh-150307 * gh-150308 <!-- /gh-linked-prs -->
Bug report
Bug description:
see discussion in #148124 (comment)
abc.registerwill change thetp_flagsbut don't update thetype version, so JIT won't invalid the old trace:cpython/Modules/_abc.c
Lines 601 to 603 in 03d2f03
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
abc.registerneeds to updatetype_versionwhentp_flagsis changed. #148623abc.registerneeds to updatetype_versionwhentp_flagsis changed (GH-148623) #150300