| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Needs a blurb entry.
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @ZeroIntensity for commit 6ebd095 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F132701%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. 👍👍
Sorry, something went wrong.
|
Thanks @noamcohen97 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
(cherry picked from commit 6b73502) Co-authored-by: Noam Cohen <noam@noam.me>
|
Sorry, @noamcohen97 and @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 6b735023132a4ac9dc5b849d982104eeb1e8bdad 3.13 |
Sorry, something went wrong.
|
GH-134356 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-134361 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
|
Hi, the newly added test fails on systems without native_id: Traceback (most recent call last):
File "<string>", line 6, in <module>
parent_thread_native_id = threading.current_thread().native_id
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_MainThread' object has no attribute 'native_id'(while Lib/threading.py does check for its existence, the test does not) |
Sorry, something went wrong.
|
@kulikjak Thank you for noticing. I apologize for that. @serhiy-storchaka Can you please help with merging the fix? |
Sorry, something went wrong.
|
No worries, thanks for the fix! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Since most of Python's runtime state, including thread-related data, is only consistent after PyOS_AfterFork_Child() is called, updating native_id in the after_fork handler ensures correctness and aligns with Python’s existing fork-handling mechanisms.