Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-59956: Clarify Runtime State Status Expectations #101308

Merged

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Jan 25, 2023

A PyThreadState can be in one of many states in its lifecycle, represented by some status value. Those statuses haven't been particularly clear, so we're addressing that here. Specifically:

  • made the distinct lifecycle statuses clear on PyThreadState
  • identified expectations of how various lifecycle-related functions relate to status
  • noted the various places where those expectations don't match the actual behavior

At some point we'll need to address the mismatches.

(This change also includes some cleanup.)

@ericsnowcurrently ericsnowcurrently force-pushed the pystate-lifecycle-cleanup branch from 575a299 to 6869bfe Compare January 25, 2023 22:08
@ericsnowcurrently ericsnowcurrently marked this pull request as ready for review January 30, 2023 18:56
@ericsnowcurrently ericsnowcurrently merged commit e11fc03 into python:main Jan 30, 2023
@ericsnowcurrently ericsnowcurrently deleted the pystate-lifecycle-cleanup branch January 30, 2023 19:07
mdboom pushed a commit to mdboom/cpython that referenced this pull request Jan 31, 2023
…01308)

A PyThreadState can be in one of many states in its lifecycle, represented by some status value.  Those statuses haven't been particularly clear, so we're addressing that here.  Specifically:

* made the distinct lifecycle statuses clear on PyThreadState
* identified expectations of how various lifecycle-related functions relate to status
* noted the various places where those expectations don't match the actual behavior

At some point we'll need to address the mismatches.

(This change also includes some cleanup.)

python#59956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants