Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-106320: Remove private _PyOS_IsMainThread() function#108605

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:pycore_signal
Aug 29, 2023

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedAug 29, 2023
edited by bedevere-bot
Loading

Move the following private API to the internal C API (pycore_signal.h):

  • _PyOS_IsMainThread()
  • _PyOS_SigintEvent()

No longer export these functions.

Move the following private API to the internal C API(pycore_signal.h): _PyOS_IsMainThread() and _PyOS_SigintEvent().
@vstinnervstinnerenabled auto-merge (squash)August 29, 2023 03:02
@vstinnervstinner merged commitfadc2dc intopython:mainAug 29, 2023
@vstinnervstinner deleted the pycore_signal branchAugust 29, 2023 03:40
@jbms
Copy link
Contributor

jbms commentedDec 5, 2024

This breaks tensorstore, specifically due to the usage of_PyOS_SigintEvent here:https://github.com/google/tensorstore/blob/798025f874c7579b2eb900932bf7c56d4f8ebd62/python/tensorstore/future.cc#L75

It is used in order to make a blocking wait within the main thread interruptible via Control+C on Windows. I don't know of any easy alternative. For now I will be using the workaround of copying the declaration to my own source file, but if the function is eventually removed entirely that won't work.

@vstinner
Copy link
MemberAuthor

Would you mind to open a new issue since this one is closed? Please explain your use case and why you need this function to be exposed.

@vstinner
Copy link
MemberAuthor

Ping@jbms.

@jbms
Copy link
Contributor

jbms commentedJan 9, 2025

Ping@jbms.

Created#128684

vstinner reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@vstinner@jbms@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp