gh-143698: correctly check scheduler and setpgroup values for os.posix_spawn[p]#143699
gh-143698: correctly check scheduler and setpgroup values for os.posix_spawn[p]#143699picnixz merged 7 commits intopython:mainfrom
scheduler and setpgroup values for os.posix_spawn[p]#143699Conversation
|
The documentation to me is a bit subtle about providing this parameter:
Do I understand correctly that:
? |
Yes, |
I think it would be better, yeah 👍 |
Mmh. I don't think so (?) at least I don't have an example |
|
I'd like to note that if you pass |
scheduler type for os.posix_spawn[p]scheduler and setpgroup values for os.posix_spawn[p]
644cfdf to
34cd655
Compare
|
Hum. I don't know if I want to split this PR. I think it's better, but it won't help for reverts because reverting one change would anyway create a conflict with another. @vstinner Do you want me to split this PR just for commit history being a bit clearer? |
|
Oh I forgot about those inspect tests. Ok, I'll do two PRs. |
Right, test_inspect is failing on CIs. Why do you want to make two PRs? You can update test_inspect in this PR, no? |
|
That is what I thought but since it has both an additionnal feature (that is the setpgroup stuff) I maybe wanted a separate PR (as this would change more than one thing). I thought about first fixing the crash and then allowing explicit None. |
This comment was marked as resolved.
This comment was marked as resolved.
|
Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
|
Sorry, @picnixz, I could not cleanly backport this to |
|
Sorry, @picnixz, I could not cleanly backport this to |
…alues for `os.posix_spawn[p]` (pythonGH-143699) Fix an issue where passing invalid arguments to `os.posix_spawn[p]` functions raised a SystemError instead of a TypeError, and allow to explicitly use `None` for `scheduler` and `setpgroup` as specified in the docs. (cherry picked from commit 347fc43) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-145073 is a backport of this pull request to the 3.14 branch. |
…alues for `os.posix_spawn[p]` (pythonGH-143699) Fix an issue where passing invalid arguments to `os.posix_spawn[p]` functions raised a SystemError instead of a TypeError, and allow to explicitly use `None` for `scheduler` and `setpgroup` as specified in the docs. (cherry picked from commit 347fc43) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-145074 is a backport of this pull request to the 3.13 branch. |
…for `os.posix_spawn[p]` (GH-143699) (#145074) * [3.13] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_spawn[p]` (GH-143699) Fix an issue where passing invalid arguments to `os.posix_spawn[p]` functions raised a SystemError instead of a TypeError, and allow to explicitly use `None` for `scheduler` and `setpgroup` as specified in the docs. (cherry picked from commit 347fc43)
Uh oh!
There was an error while loading. Please reload this page.