From 03ca8b5f23e9fe122bb0ca80397a2481c10cd7c4 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Sat, 20 Oct 2018 00:35:43 -0400 Subject: [PATCH 1/5] bpo-34909: NEWS entry. --- .../next/Library/2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst diff --git a/Misc/NEWS.d/next/Library/2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst b/Misc/NEWS.d/next/Library/2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst new file mode 100644 index 00000000000..b71b69ad852 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst @@ -0,0 +1,2 @@ +Enum: fix grandchildren subclassing when parent mixed with concrete data +types. From 60c663c0f76c790afbed4d673c3ce264dd226b8c Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 13 Oct 2018 12:26:47 -0700 Subject: [PATCH 2/5] bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() (GH-9837) (GH-9849) https://bugs.python.org/issue34970 (cherry picked from commit 97cf0828727ac2a269c89c5aa09570a69a22c83c) Co-authored-by: Andrew Svetlov --- Lib/asyncio/tasks.py | 8 ++++++-- .../next/Library/2018-10-13-11-14-13.bpo-34970.SrJTY7.rst | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 Misc/NEWS.d/next/Library/2018-10-13-11-14-13.bpo-34970.SrJTY7.rst diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 72792a25cf5..416c346be2e 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -35,7 +35,9 @@ def all_tasks(loop=None): """Return a set of all tasks for the loop.""" if loop is None: loop = events.get_running_loop() - return {t for t in _all_tasks + # NB: set(_all_tasks) is required to protect + # from https://bugs.python.org/issue34970 bug + return {t for t in list(_all_tasks) if futures._get_loop(t) is loop and not t.done()} @@ -45,7 +47,9 @@ def _all_tasks_compat(loop=None): # method. if loop is None: loop = events.get_event_loop() - return {t for t in _all_tasks if futures._get_loop(t) is loop} + # NB: set(_all_tasks) is required to protect + # from https://bugs.python.org/issue34970 bug + return {t for t in list(_all_tasks) if futures._get_loop(t) is loop} class Task(futures._PyFuture): # Inherit Python Task implementation diff --git a/Misc/NEWS.d/next/Library/2018-10-13-11-14-13.bpo-34970.SrJTY7.rst b/Misc/NEWS.d/next/Library/2018-10-13-11-14-13.bpo-34970.SrJTY7.rst new file mode 100644 index 00000000000..a58b3dd3541 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-10-13-11-14-13.bpo-34970.SrJTY7.rst @@ -0,0 +1 @@ +Protect tasks weak set manipulation in ``asyncio.all_tasks()`` From ce3b5a80cc6ee4f9aff7b673f457294d7e054349 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 15 Oct 2018 14:20:11 -0700 Subject: [PATCH 3/5] bpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850) * Add News entry for the change in multiprocessing.reduction.recvfds made in GH-9613. (cherry picked from commit bd036d3d15fc1310ccc32a43a3296b8c157ac221) Co-authored-by: Pablo Galindo --- .../next/Library/2018-10-13-19-15-23.bpo-34521.YPaiTK.rst | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2018-10-13-19-15-23.bpo-34521.YPaiTK.rst diff --git a/Misc/NEWS.d/next/Library/2018-10-13-19-15-23.bpo-34521.YPaiTK.rst b/Misc/NEWS.d/next/Library/2018-10-13-19-15-23.bpo-34521.YPaiTK.rst new file mode 100644 index 00000000000..4f4a7f74864 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-10-13-19-15-23.bpo-34521.YPaiTK.rst @@ -0,0 +1,3 @@ +Use :func:`socket.CMSG_SPACE` to calculate ancillary data size instead of +:func:`socket.CMSG_LEN` in :func:`multiprocessing.reduction.recvfds` as +:rfc:`3542` requires the use of the former for portable applications. From 32fe7b0188bb73c84c0bde80643b6a3bfd03ba93 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Sat, 20 Oct 2018 00:49:35 -0400 Subject: [PATCH 4/5] bpo-34576: Revert doc change until it can be properly fixed (GH-9720) This reverts commit 57038bcb24407abbbb46e6d278d0ab4b6ad25bbf. --- Doc/library/http.server.rst | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index 0b93c62288b..0bd7f778cec 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -16,14 +16,6 @@ This module defines classes for implementing HTTP servers (Web servers). -Security Considerations ------------------------ - -http.server is meant for demo purposes and does not implement the stringent -security checks needed of real HTTP server. We do not recommend -using this module directly in production. - - One class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` subclass. It creates and listens at the HTTP socket, dispatching the requests to a handler. Code to create and run the server looks like this:: From 260ec2c36abd73bac51489108409160427979ede Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Sat, 20 Oct 2018 02:04:19 -0400 Subject: [PATCH 5/5] 3.7.1final --- Include/patchlevel.h | 6 +++--- Lib/pydoc_data/topics.py | 5 ++--- Misc/NEWS.d/3.7.1.rst | 7 +++++++ Misc/NEWS.d/3.7.1rc2.rst | 20 +++++++++++++++++++ .../2018-10-13-11-14-13.bpo-34970.SrJTY7.rst | 1 - .../2018-10-13-19-15-23.bpo-34521.YPaiTK.rst | 3 --- .../2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst | 2 -- README.rst | 4 ++-- 8 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 Misc/NEWS.d/3.7.1.rst delete mode 100644 Misc/NEWS.d/next/Library/2018-10-13-11-14-13.bpo-34970.SrJTY7.rst delete mode 100644 Misc/NEWS.d/next/Library/2018-10-13-19-15-23.bpo-34521.YPaiTK.rst delete mode 100644 Misc/NEWS.d/next/Library/2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst diff --git a/Include/patchlevel.h b/Include/patchlevel.h index 38823102a48..667facb9c60 100644 --- a/Include/patchlevel.h +++ b/Include/patchlevel.h @@ -19,11 +19,11 @@ #define PY_MAJOR_VERSION 3 #define PY_MINOR_VERSION 7 #define PY_MICRO_VERSION 1 -#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_GAMMA -#define PY_RELEASE_SERIAL 2 +#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL +#define PY_RELEASE_SERIAL 0 /* Version as a string */ -#define PY_VERSION "3.7.1rc2" +#define PY_VERSION "3.7.1" /*--end constants--*/ /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2. diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py index f3ef36b2459..f5b9aa137b2 100644 --- a/Lib/pydoc_data/topics.py +++ b/Lib/pydoc_data/topics.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Autogenerated by Sphinx on Sat Oct 13 02:40:00 2018 +# Autogenerated by Sphinx on Sat Oct 20 01:59:27 2018 topics = {'assert': 'The "assert" statement\n' '**********************\n' '\n' @@ -5526,8 +5526,7 @@ topics = {'assert': 'The "assert" statement\n' ' 3232235521\n' ' >>>\n' ' >>> width = 5\n' - ' >>> for num in range(5,12): #doctest: ' - '+NORMALIZE_WHITESPACE\n' + ' >>> for num in range(5,12): \n' " ... for base in 'dXob':\n" " ... print('{0:{width}{base}}'.format(num, " "base=base, width=width), end=' ')\n" diff --git a/Misc/NEWS.d/3.7.1.rst b/Misc/NEWS.d/3.7.1.rst new file mode 100644 index 00000000000..67eeb859090 --- /dev/null +++ b/Misc/NEWS.d/3.7.1.rst @@ -0,0 +1,7 @@ +.. bpo: 34970 +.. date: 2018-10-13-11-14-13 +.. nonce: SrJTY7 +.. release date: 2018-10-20 +.. section: Library + +Protect tasks weak set manipulation in ``asyncio.all_tasks()`` diff --git a/Misc/NEWS.d/3.7.1rc2.rst b/Misc/NEWS.d/3.7.1rc2.rst index 89c5aebc93a..3f7e70a1d8f 100644 --- a/Misc/NEWS.d/3.7.1rc2.rst +++ b/Misc/NEWS.d/3.7.1rc2.rst @@ -49,6 +49,15 @@ Fixed integer overflow in the :meth:`~hashlib.shake.digest()` and .. +.. bpo: 34909 +.. date: 2018-10-20-00-35-19 +.. nonce: Ew_8DC +.. section: Library + +Enum: fix grandchildren subclassing when parent mixed with concrete data +types. + +.. .. bpo: 34900 .. date: 2018-10-05-05-55-53 .. nonce: 8RNiFu @@ -89,6 +98,17 @@ system clock is adjusted. .. +.. bpo: 34521 +.. date: 2018-10-13-19-15-23 +.. nonce: YPaiTK +.. section: Library + +Use :func:`socket.CMSG_SPACE` to calculate ancillary data size instead of +:func:`socket.CMSG_LEN` in :func:`multiprocessing.reduction.recvfds` as +:rfc:`3542` requires the use of the former for portable applications. + +.. + .. bpo: 34334 .. date: 2018-09-25-08-42-34 .. nonce: rSPBW9 diff --git a/Misc/NEWS.d/next/Library/2018-10-13-11-14-13.bpo-34970.SrJTY7.rst b/Misc/NEWS.d/next/Library/2018-10-13-11-14-13.bpo-34970.SrJTY7.rst deleted file mode 100644 index a58b3dd3541..00000000000 --- a/Misc/NEWS.d/next/Library/2018-10-13-11-14-13.bpo-34970.SrJTY7.rst +++ /dev/null @@ -1 +0,0 @@ -Protect tasks weak set manipulation in ``asyncio.all_tasks()`` diff --git a/Misc/NEWS.d/next/Library/2018-10-13-19-15-23.bpo-34521.YPaiTK.rst b/Misc/NEWS.d/next/Library/2018-10-13-19-15-23.bpo-34521.YPaiTK.rst deleted file mode 100644 index 4f4a7f74864..00000000000 --- a/Misc/NEWS.d/next/Library/2018-10-13-19-15-23.bpo-34521.YPaiTK.rst +++ /dev/null @@ -1,3 +0,0 @@ -Use :func:`socket.CMSG_SPACE` to calculate ancillary data size instead of -:func:`socket.CMSG_LEN` in :func:`multiprocessing.reduction.recvfds` as -:rfc:`3542` requires the use of the former for portable applications. diff --git a/Misc/NEWS.d/next/Library/2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst b/Misc/NEWS.d/next/Library/2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst deleted file mode 100644 index b71b69ad852..00000000000 --- a/Misc/NEWS.d/next/Library/2018-10-20-00-35-19.bpo-34909.Ew_8DC.rst +++ /dev/null @@ -1,2 +0,0 @@ -Enum: fix grandchildren subclassing when parent mixed with concrete data -types. diff --git a/README.rst b/README.rst index 82f101c1fa0..9b08049ef02 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ -This is Python version 3.7.1 candidate 2 -======================================== +This is Python version 3.7.1 +============================ .. image:: https://travis-ci.org/python/cpython.svg?branch=master :alt: CPython build status on Travis CI