Close #12028: Make threading._get_ident() public, rename it to

threading.get_ident() and document it. This function was used by
_thread.get_ident().
This commit is contained in:
Victor Stinner 2011-05-30 23:02:52 +02:00
parent d976098e3b
commit 2a12974bca
12 changed files with 50 additions and 39 deletions

View file

@ -5,7 +5,7 @@ __all__ = ["Repr", "repr", "recursive_repr"]
import builtins
from itertools import islice
try:
from _thread import get_ident
from threading import get_ident
except ImportError:
from _dummy_thread import get_ident