Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-59705: Add _thread.set_name() function #127338

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Commits on Nov 27, 2024

  1. pythongh-59705: Add _thread.set_name() function

    On Linux, threading.Thread now sets the thread name to the operating
    system.
    
    configure now checks if pthread_setname_np() function is available.
    vstinner committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    c6d324d View commit details
    Browse the repository at this point in the history
  2. Port to macOS

    vstinner committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    63b5d52 View commit details
    Browse the repository at this point in the history
  3. Add tests

    vstinner committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    9f6a8ab View commit details
    Browse the repository at this point in the history
  4. Try to fix macOS _get_name()

    vstinner committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    d79e7af View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. Configuration menu
    Copy the full SHA
    ebd9752 View commit details
    Browse the repository at this point in the history
  2. Address review

    vstinner committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    a7f5651 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    97ea645 View commit details
    Browse the repository at this point in the history
  4. Add test on non-ASCII name

    vstinner committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    78a9ab9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dcf13f4 View commit details
    Browse the repository at this point in the history
  6. macOS is limited to 63 bytes

    vstinner committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    6ea7e5a View commit details
    Browse the repository at this point in the history
  7. Catch UnicodeEncodeError when seting the name

    Refactor also tests.
    vstinner committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    46721bb View commit details
    Browse the repository at this point in the history
  8. Add tests

    vstinner committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    6962116 View commit details
    Browse the repository at this point in the history
  9. Use "replace" error handler

    vstinner committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    5d27da0 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2024

  1. Address review

    vstinner committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    b713910 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c20ea1 View commit details
    Browse the repository at this point in the history