Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-100228: Document the os.fork threads DeprecationWarning.#109767
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(thanks AA-Turner!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks good, couple of suggestions.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
A
Thanks@gpshead for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…thonGH-109767)Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs.Many reviews and doc cleanup edits by Adam & Hugo. 🥳(cherry picked from commit5e7ea95)Co-authored-by: Gregory P. Smith <greg@krypto.org>Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
GH-109773 is a backport of this pull request to the3.12 branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for adding these clarifications and warnings.
Apart from the change in the "What's new" I think this is good to go.
We added the warning to to raise awareness as issues encounted by code doing | ||
this are becoming more frequent. See the:func:`os.fork` documentation for | ||
more details. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I would copy the paragraph from the os.fork() docs here as well, to make it easier for people to find the reasoning behind this:
See `this discussion on fork being incompatible with threads<https://discuss.python.org/t/33555>`_for technical details of why we're surfacing this longstandingplatform compatibility problem to developers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks, I included that (edited) over in the 3.12 backport#109773. I'll make the same edit inmain
after that is merged.
Include the link to the discussion in the what's new text per @malemberg's comment on.python#109767(i'll follow up with a PR to main to include this edit there as well)
…H-109767) (#109773)*gh-100228: Document the os.fork threads DeprecationWarning. (GH-109767)Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs.Many reviews and doc cleanup edits by Adam & Hugo. 🥳(cherry picked from commit5e7ea95)Co-authored-by: Gregory P. Smith <greg@krypto.org>Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>* link to the discussion thread from whatsnewInclude the link to the discussion in the what's new text per @malemberg's comment on.#109767(i'll follow up with a PR to main to include this edit there as well)---------Co-authored-by: Gregory P. Smith <greg@krypto.org>Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
…H-109767) (#109773)* gh-100228: Document the os.fork threads DeprecationWarning. (GH-109767)Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs.Many reviews and doc cleanup edits by Adam & Hugo. 🥳(cherry picked from commit 5e7ea95d9d5c3b80a67ffbeebd76ce4fc327dd8e)Co-authored-by: Gregory P. Smith <greg@krypto.org>Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>* link to the discussion thread from whatsnewInclude the link to the discussion in the what's new text per @malemberg's comment on.python/cpython#109767(i'll follow up with a PR to main to include this edit there as well)---------Co-authored-by: Gregory P. Smith <greg@krypto.org>Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>CPython-sync-commit: 62df559448362f9a4291661d64aee30474dec025
…thon#109767)Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs.Many reviews and doc cleanup edits by Adam & Hugo. 🥳 Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
…09807)A post main merge edit to the text was added in the 3.12 backport PR.python@e38d710This includes that in main. It's a minor edit overpython#109767 to resolve the comment there.
…thon#109767)Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs.Many reviews and doc cleanup edits by Adam & Hugo. 🥳 Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
…09807)A post main merge edit to the text was added in the 3.12 backport PR.python@e38d710This includes that in main. It's a minor edit overpython#109767 to resolve the comment there.
Uh oh!
There was an error while loading.Please reload this page.
Better document the os.fork warning to explain questions such as those raised inhttps://discuss.python.org/t/concerns-regarding-deprecation-of-fork-with-alive-threads/33555.
📚 Documentation preview 📚:https://cpython-previews--109767.org.readthedocs.build/