Skip to content

gh-60207: Raise OSError instead of ThreadError if thread creation fails#22068

Open
ZackerySpytz wants to merge 1 commit intopython:mainfrom
ZackerySpytz:bpo-16003-thread-creation-error
Open

gh-60207: Raise OSError instead of ThreadError if thread creation fails#22068
ZackerySpytz wants to merge 1 commit intopython:mainfrom
ZackerySpytz:bpo-16003-thread-creation-error

Conversation

@ZackerySpytz
Copy link
Copy Markdown
Contributor

@ZackerySpytz ZackerySpytz commented Sep 2, 2020

If PyThread_start_new_thread() fails, use a more informative OSError
instead of a generic ThreadError.

https://bugs.python.org/issue16003

If PyThread_start_new_thread() fails, use a more informative OSError
instead of a generic ThreadError.
@ZackerySpytz
Copy link
Copy Markdown
Contributor Author

It would be nice to have a unit test for this.

@erlend-aasland erlend-aasland changed the title bpo-16003: Raise OSError instead of ThreadError if thread creation fails gh-60207: Raise OSError instead of ThreadError if thread creation fails Jan 5, 2024
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants