[issue15500] Python should support exporting thread names to the OS

2022-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Two things: 1) I agree this is an extremely valuable addition for any package or application that does a non-trivial use of threads in Python. 2) It should at least be exposed as a standalone function in the `threading` module, *and* ideally also be called

[issue15500] Python should support exporting thread names to the OS

2022-01-18 Thread Oleg Iarygin
Oleg Iarygin added the comment: @r.david.murray > It is indeed the compatibility that is the worse issue. The problem is what > people have gotten used to and may have coded their applications to > expect/deal > with. I agree with you that most people would *not* find it surprising to see

[issue15500] Python should support exporting thread names to the OS

2021-11-14 Thread Eryk Sun
Eryk Sun added the comment: Zackery, here's an initial draft implementation for Windows 10+ that's based on the interface you created in PR 14578. It calls WinAPI SetThreadDescription(), which sets the thread's name directly in the kernel thread object (i.e. ETHREAD.ThreadName). This

[issue15500] Python should support exporting thread names to the OS

2020-09-22 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15500] Python should support exporting thread names to the OS

2020-09-22 Thread STINNER Victor
STINNER Victor added the comment: bpo-18006 "Set thread name in linux kernel" was marked as a duplicate of this issue: """ In linux (Since 2.6.9) we can use syscall prctl(PR_SET_NAME, "Some thread name") to set thread name to the kernel. (...) """ -- nosy: +vstinner

[issue15500] Python should support exporting thread names to the OS

2019-07-03 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue15500] Python should support exporting thread names to the OS

2019-07-03 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +14397 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14578 ___ Python tracker

[issue15500] Python should support exporting thread names to the OS

2015-11-30 Thread R. David Murray
Changes by R. David Murray : -- stage: -> needs patch title: Python should support naming threads -> Python should support exporting thread names to the OS versions: +Python 3.6 -Python 3.4 ___ Python tracker