Skip to content

Illumos and Solaris Thread Native ID #137884

@yuce

Description

@yuce

Feature or enhancement

Proposal:

Currently, Illumos and Solaris 11 ports of Python doesn't have threading.get_native_id:

$ uname -a
SunOS omnios 5.11 omnios-r151054-180b86b9dd i86pc i386 i86pc
$ python3 --version
Python 3.13.3
$ python3 -c "import threading; print(threading.get_native_id())"                  
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import threading; print(threading.get_native_id())
                            ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'threading' has no attribute 'get_native_id'

If that's OK, I'll submit a PR that enables threading.get_native_id on Illumos distributions and Solaris 11.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions