diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-10-06 18:38:17 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-10-06 18:38:17 (GMT) |
commit | d9c6ab48a0636b6aa753be908946d246a6403275 (patch) | |
tree | 091719f4b738c933022fba1b8751eb68062da5f3 /Doc/whatsnew | |
parent | cf46d62fcb29d7e054ec149a89a8d603252f36b3 (diff) | |
parent | ef4d286770ab264ffc07c7f25385c1e226f3eb4a (diff) | |
download | cpython-d9c6ab48a0636b6aa753be908946d246a6403275.zip cpython-d9c6ab48a0636b6aa753be908946d246a6403275.tar.gz cpython-d9c6ab48a0636b6aa753be908946d246a6403275.tar.bz2 |
merge #10968: commit threading doc changes and corresponding whatsnew entry.
It is unfortunate that the '_' names were not kept as aliases, and that RLock
was not also converted to a class, but it is now too late to change either of
those things for 3.3.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.3.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 088ea4a..1fef8d3 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -1945,6 +1945,12 @@ of text (:issue:`13857`). threading --------- +:class:`threading.Condition`, :class:`threading.Semaphore`, +:class:`threading.BoundedSempaphore`, :class:`threading.Event`, and +:class:`threading.Timer`, all of which used to be factory functions returning a +class instance, are now classes and may be subclassed. (Contributed by Éric +Araujo in :issue:`109681`). + The :class:`threading.Thread` constructor now accepts a ``daemon`` keyword argument to override the default behavior of inheriting the ``deamon`` flag value from the parent thread (:issue:`6064`). @@ -2331,6 +2337,10 @@ Porting Python code make decisions affected by the AST version, use :attr:`sys.version_info` to make the decision. +* Code that used to work around the fact that the :mod:`threading` module used + factory functions by subclassing the private classes will need to change to + subclass the now-public classes. + Porting C code -------------- |