[docs] [issue12028] threading._get_ident(): remove it in the doc or make it public

STINNER Victor report at bugs.python.org
Tue May 24 12:25:44 CEST 2011

STINNER Victor <victor.stinner at haypocalc.com> added the comment:

threading_get_ident.patch: make get_ident() public, replace threading._get_ident() by threading.get_ident().

According to this patch, get_ident() function *is* used: it is used by the logging and reprlib modules (and many tests). My patch avoids the usage of the low-level module, _thread_, in logging and reprlib.

I adapted signal.pthread_kill() documentation to replace threading.current_thread().ident by threading.get_ident().

keywords: +patch
Added file: http://bugs.python.org/file22089/threading_get_ident.patch

Python tracker <report at bugs.python.org>

More information about the docs mailing list