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-114570: Add PythonFinalizationError exception#115352

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 2 commits intopython:mainfromvstinner:python_finalization_error2
Feb 14, 2024

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedFeb 12, 2024
edited by github-actionsbot
Loading

Add PythonFinalizationError exception. This exception derived from RuntimeError is raised when an operation is blocked during the Python finalization.

The following functions now raise PythonFinalizationError, instead of RuntimeError:

  • _thread.start_new_thread()
  • subprocess.Popen
  • os.fork()
  • os.fork1()
  • os.forkpty()

Morever, _winapi.Overlapped finalizer now logs an unraisable PythonFinalizationError, instead of an unraisable RuntimeError.


📚 Documentation preview 📚:https://cpython-previews--115352.org.readthedocs.build/

@vstinner
Copy link
MemberAuthor

Copy link
Member

@gpsheadgpshead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

thanks!

Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM.

vstinnerand others added2 commitsFebruary 14, 2024 22:52
Add PythonFinalizationError exception. This exception derived fromRuntimeError is raised when an operation is blocked during the Pythonfinalization.The following functions now raise PythonFinalizationError, instead ofRuntimeError:* _thread.start_new_thread()* subprocess.Popen* os.fork()* os.fork1()* os.forkpty()Morever, _winapi.Overlapped finalizer now logs an unraisablePythonFinalizationError, instead of an unraisable RuntimeError.
@vstinnervstinnerforce-pushed thepython_finalization_error2 branch from6d096b9 to30bd9c9CompareFebruary 14, 2024 21:54
@vstinner
Copy link
MemberAuthor

PR rebased on main to attempt to fix the macos-13 CI issue.

@vstinnervstinner merged commit3e7b7df intopython:mainFeb 14, 2024
@vstinnervstinner deleted the python_finalization_error2 branchFebruary 14, 2024 22:35
@vstinner
Copy link
MemberAuthor

Merged. Thanks for the review@gpshead and@serhiy-storchaka.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpsheadgpsheadgpshead approved these changes

@serhiy-storchakaserhiy-storchakaserhiy-storchaka approved these changes

@iritkatrieliritkatrielAwaiting requested review from iritkatrieliritkatriel is a code owner

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@vstinner@gpshead@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp