[issue36084] Threading: add builtin TID attribute to Thread objects

STINNER Victor report at bugs.python.org
Thu May 23 13:14:10 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

If someone wants to document that _start_new_thread() return value is similar to threading.get_ident() but not threading.get_native_id(): please go ahead and propose a PR :-)

Adding support for AIX to get_native_id() should be done in a separated issue since AIX seems to come with specific challenges :-)

The initial feature request is now implemented. Well done! I know that many people were awaiting to expose "gettid()" in Python. Now it's there!

Thanks everyone who was involved in this issue.

Sorry for the CI hiccup which required to revert the change temporarily. At least, it didn't miss Python 3.8 feature freeze!

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36084>
_______________________________________


More information about the Python-bugs-list mailing list