| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The owner field of _PyInterpreterFrame is supposed to be a member of enum _frameowner, but FRAME_CLEARED is a member of enum _framestate. Add FRAME_OWNED_BY_ACCIDENT to enum _frameowner and use that instead. (It happens to have the same numerical value, but we shouldn’t rely on that anywhere.) Signed-off-by: Anders Kaseorg <andersk@mit.edu>
| FRAME_OWNED_BY_GENERATOR = 1, | ||
| FRAME_OWNED_BY_FRAME_OBJECT = 2, | ||
| FRAME_OWNED_BY_CSTACK = 3, | ||
| FRAME_OWNED_BY_ACCIDENT = 4, |
There was a problem hiding this comment.
Maybe you should add a NEWS describing that you added a new value to the enum_frameowner enumeration in pycore_frame.h.
I think that making modifications to the interpreter core requires adding.
Sorry, something went wrong.
There was a problem hiding this comment.
This is not part of the public API; it’s an internal fix that has no direct relevance to Python users or extension authors.
However, the surrounding code has changed, so I’m closing this in favor of
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The owner field of _PyInterpreterFrame is supposed to be a member of enum _frameowner, but FRAME_CLEARED is a member of enum _framestate. Add FRAME_OWNED_BY_ACCIDENT to enum _frameowner and use that instead. (It happens to have the same numerical value, but we shouldn’t rely on that anywhere.)