Visitar URL original
bpo-43963: Add a module state to _signal by vstinner · Pull Request #25676 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20220511015346/https://github.com/python/cpython/pull/25676
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

bpo-43963: Add a module state to _signal #25676

Merged
merged 1 commit into from Apr 28, 2021
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 28, 2021 •

  • Add signal_state_t structure and signal_global_state variable.

  • Add a module state to the _signal module.

  • Move and rename variables:

    • DefaultHandler becomes state->default_handler
    • IgnoreHandler becomes state->ignore_handler
    • sigint_event becomes state->sigint_event
    • ItimerError becomes modstate->itimer_error
  • Rename SetHandler() to set_handler() to be consistent with
    get_handler().

https://bugs.python.org/issue43963

* Add signal_state_t structure and signal_global_state variable.
* Add a module state to the _signal module.
* Move and rename variables:

  * DefaultHandler becomes state->default_handler
  * IgnoreHandler becomes state->ignore_handler
  * sigint_event becomes state->sigint_event
  * ItimerError becomes modstate->itimer_error

* Rename SetHandler() to set_handler() to be consistent with
  get_handler().
@vstinner vstinner merged commit a5e6444 into python:master Apr 28, 2021
11 checks passed
@vstinner vstinner deleted the signal_state branch Apr 28, 2021
kreathon pushed a commit to kreathon/cpython that referenced this issue May 2, 2021
* Add signal_state_t structure and signal_global_state variable.
* Add a module state to the _signal module.
* Move and rename variables:

  * DefaultHandler becomes state->default_handler
  * IgnoreHandler becomes state->ignore_handler
  * sigint_event becomes state->sigint_event
  * ItimerError becomes modstate->itimer_error

* Rename SetHandler() to set_handler() to be consistent with
  get_handler().
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.

None yet

3 participants