cocolato · GitHub

Description

Bug 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:

cpython/Modules/_abc.c

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Read the original on github.com ↗