diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-10-06 18:35:35 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-10-06 18:35:35 (GMT) |
commit | ef4d286770ab264ffc07c7f25385c1e226f3eb4a (patch) | |
tree | 622d97a119b1e003c6d2eda5ce6364b53fda88cf /Doc/whatsnew/3.3.rst | |
parent | fc9adb62fbfa8d2f81f7224afea43557a4fff409 (diff) | |
download | cpython-ef4d286770ab264ffc07c7f25385c1e226f3eb4a.zip cpython-ef4d286770ab264ffc07c7f25385c1e226f3eb4a.tar.gz cpython-ef4d286770ab264ffc07c7f25385c1e226f3eb4a.tar.bz2 |
#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/3.3.rst')
-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 -------------- |