Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bbfd6b

Browse files
committed
Add threading.get_ident to whatsnew.
1 parent 258fabe commit 0bbfd6b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/whatsnew/3.3.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,6 +1911,12 @@ The :class:`threading.Thread` constructor now accepts a ``daemon`` keyword
19111911
argument to override the default behavior of inheriting the ``deamon`` flag
19121912
value from the parent thread (:issue:`6064`).
19131913

1914+
The formerly private function ``_thread.get_ident`` is now available as the
1915+
public function :func:`~threading.get_ident`. This eliminates several cases of
1916+
direct access to the ``_thread`` module in the stdlib. Third party code that
1917+
used ``_thread.get_ident`` should likewise be changed to use the new public
1918+
interface.
1919+
19141920

19151921
time
19161922
----

0 commit comments

Comments
 (0)