diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2008-06-01 23:48:47 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-06-01 23:48:47 (GMT) |
commit | 8856ddae2522c644132b5d0730ab60021f2ce13e (patch) | |
tree | 717f19f039e2319d93159ca0e602165bac7dbf44 /Doc | |
parent | 1bd52d745b16c1a41dd63869264315a4d138f62f (diff) | |
download | cpython-8856ddae2522c644132b5d0730ab60021f2ce13e.zip cpython-8856ddae2522c644132b5d0730ab60021f2ce13e.tar.gz cpython-8856ddae2522c644132b5d0730ab60021f2ce13e.tar.bz2 |
Adds a Thread.getIdent() method to provide the _get_ident() value for
any given threading.Thread object. feature request issue 2871.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/threading.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 8cb84b3..a323506 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -651,6 +651,17 @@ impossible to detect the termination of alien threads. constructor. +.. method:: Thread.getIdent() + + Return the 'thread identifier' of this thread or None if the thread has not + been started. This is a nonzero integer. See the :mod:`thread` module's + :func:`get_ident()` function. Thread identifiers may be recycled when a + thread exits and another thread is created. The identifier is returned + even after the thread has exited. + + .. versionadded:: 2.6 + + .. method:: Thread.isAlive() Return whether the thread is alive. |