Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove asserts that confuse enum _framestate with enum _frameowner
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 a53cc3f (pythonGH-116687). Remove the incorrect checks for owner != FRAME_CLEARED as well. Signed-off-by: Anders Kaseorg <[email protected]>
- Loading branch information