summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.7.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-05-24 01:14:44 (GMT)
committerGitHub <noreply@github.com>2018-05-24 01:14:44 (GMT)
commit453bd0bc65b7ea6a18c43da69143ab10d54c0a35 (patch)
tree6c3c61b643d1b80dfa63508e3b8de265ee4c40ab /Doc/whatsnew/3.7.rst
parentb97de3dd86046ac46567146d86a69d4f78ea09db (diff)
downloadcpython-453bd0bc65b7ea6a18c43da69143ab10d54c0a35.zip
cpython-453bd0bc65b7ea6a18c43da69143ab10d54c0a35.tar.gz
cpython-453bd0bc65b7ea6a18c43da69143ab10d54c0a35.tar.bz2
bpo-33540: Add block_on_close attr to socketserver (GH-6911)
Add a new block_on_close class attribute to ForkingMixIn and ThreadingMixIn classes of socketserver to opt-in for pre-3.7 behaviour.
Diffstat (limited to 'Doc/whatsnew/3.7.rst')
-rw-r--r--Doc/whatsnew/3.7.rst27
1 files changed, 23 insertions, 4 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 46015af..b466e74 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -1216,6 +1216,18 @@ by default.
(Contributed by Christian Heimes in :issue:`28134`.)
+socketserver
+------------
+
+:meth:`socketserver.ThreadingMixIn.server_close` now waits until all non-daemon
+threads complete. :meth:`socketserver.ForkingMixIn.server_close` now waits
+until all child processes complete.
+
+Add a new :attr:`socketserver.ForkingMixIn.block_on_close` class attribute to
+:class:`socketserver.ForkingMixIn` and :class:`socketserver.ThreadingMixIn`
+classes. Set the class attribute to ``False`` to get the pre-3.7 behaviour.
+
+
sqlite3
-------
@@ -2156,10 +2168,17 @@ Changes in the Python API
and module are affected by this change. (Contributed by INADA Naoki and
Eugene Toder in :issue:`29463`.)
-* :meth:`~socketserver.BaseServer.server_close` in
- :class:`socketserver.ThreadingMixIn` and :class:`socketserver.ForkingMixIn`
- now waits until all non-daemon threads complete.
- (Contributed by Victor Stinner in :issue:`31233` and :issue:`31151`.)
+* :meth:`socketserver.ThreadingMixIn.server_close` now waits until all
+ non-daemon threads complete. Set the new
+ :attr:`socketserver.ThreadingMixIn.block_on_close` class attribute to
+ ``False`` to get the pre-3.7 behaviour.
+ (Contributed by Victor Stinner in :issue:`31233` and :issue:`33540`.)
+
+* :meth:`socketserver.ForkingMixIn.server_close` now waits until all
+ child processes complete. Set the new
+ :attr:`socketserver.ForkingMixIn.block_on_close` class attribute to ``False``
+ to get the pre-3.7 behaviour.
+ (Contributed by Victor Stinner in :issue:`31151` and :issue:`33540`.)
* The :func:`locale.localeconv` function now temporarily sets the ``LC_CTYPE``
locale to the value of ``LC_NUMERIC`` in some cases.