diff options
author | Anders Kaseorg <andersk@mit.edu> | 2025-01-02 16:55:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-02 16:55:33 (GMT) |
commit | a626f9a67b76e5fe69677afd5f8317d8c61de8de (patch) | |
tree | 6e8d94da7878700595cdcfbe6a627d26be87d130 /Python/brc.c | |
parent | 58e9f95c4aa970db32a94b9152b51ede22f823bd (diff) | |
download | cpython-a626f9a67b76e5fe69677afd5f8317d8c61de8de.zip cpython-a626f9a67b76e5fe69677afd5f8317d8c61de8de.tar.gz cpython-a626f9a67b76e5fe69677afd5f8317d8c61de8de.tar.bz2 |
Remove asserts that confuse `enum _framestate` with `enum _frameowner` (GH-124148)
The `owner` field of `_PyInterpreterFrame` is supposed to be a member of
`enum _frameowner`, but `FRAME_CLEARED` is a member of `enum _framestate`.
At present, it happens that `FRAME_CLEARED` is not numerically equal to any
member of `enum _frameowner`, but that could change in the future. The code
that incorrectly assigned `owner = FRAME_CLEARED` was deleted in commit
a53cc3f49463e50cb3e2b839b3a82e6bf7f73fee (GH-116687). Remove the incorrect
checks for `owner != FRAME_CLEARED` as well.
Diffstat (limited to 'Python/brc.c')
0 files changed, 0 insertions, 0 deletions