Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 270e7cf

Browse files
author
Anselm Kruis
committed
Merge branch v3.7.6 into 3.7-slp
2 parents c7ced4d + 43364a7 commit 270e7cf

File tree

10 files changed

+39
-11
lines changed

10 files changed

+39
-11
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: c
22
dist: xenial
3-
group: beta
43

54
# To cache doc-building dependencies and C compiler output.
65
cache:

Doc/whatsnew/3.6.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,3 +2433,13 @@ In 3.6.7 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token
24332433
when provided with input that does not have a trailing new line. This behavior
24342434
now matches what the C tokenizer does internally.
24352435
(Contributed by Ammar Askar in :issue:`33899`.)
2436+
2437+
Notable changes in Python 3.6.10
2438+
================================
2439+
2440+
Due to significant security concerns, the *reuse_address* parameter of
2441+
:meth:`asyncio.loop.create_datagram_endpoint` is no longer supported. This is
2442+
because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For more
2443+
details, see the documentation for ``loop.create_datagram_endpoint()``.
2444+
(Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in
2445+
:issue:`37228`.)

Doc/whatsnew/3.7.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2557,3 +2557,13 @@ This resolves a long standing issue where all virtual environments would have
25572557
to be upgraded or recreated with each Python update. However, note that this
25582558
release will still require recreation of virtual environments in order to get
25592559
the new scripts.
2560+
2561+
Notable changes in Python 3.7.6
2562+
===============================
2563+
2564+
Due to significant security concerns, the *reuse_address* parameter of
2565+
:meth:`asyncio.loop.create_datagram_endpoint` is no longer supported. This is
2566+
because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For more
2567+
details, see the documentation for ``loop.create_datagram_endpoint()``.
2568+
(Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in
2569+
:issue:`37228`.)

Include/patchlevel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#define PY_MAJOR_VERSION 3
2020
#define PY_MINOR_VERSION 7
2121
#define PY_MICRO_VERSION 6
22-
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_GAMMA
23-
#define PY_RELEASE_SERIAL 1
22+
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
23+
#define PY_RELEASE_SERIAL 0
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.7.6rc1"
26+
#define PY_VERSION "3.7.6"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

Lib/pydoc_data/topics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Wed Dec 11 00:13:54 2019
2+
# Autogenerated by Sphinx on Wed Dec 18 13:43:31 2019
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'

Lib/test/test_asyncio/test_base_events.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,10 @@ def test_create_datagram_endpoint_reuse_address_warning(self):
17841784
reuse_address=False)
17851785

17861786
with self.assertWarns(DeprecationWarning):
1787-
self.loop.run_until_complete(coro)
1787+
transport, protocol = self.loop.run_until_complete(coro)
1788+
transport.close()
1789+
self.loop.run_until_complete(protocol.done)
1790+
self.assertEqual('CLOSED', protocol.state)
17881791

17891792
@patch_socket
17901793
def test_create_datagram_endpoint_nosoreuseport(self, m_socket):
@@ -1794,7 +1797,6 @@ def test_create_datagram_endpoint_nosoreuseport(self, m_socket):
17941797
coro = self.loop.create_datagram_endpoint(
17951798
lambda: MyDatagramProto(loop=self.loop),
17961799
local_addr=('127.0.0.1', 0),
1797-
reuse_address=False,
17981800
reuse_port=True)
17991801

18001802
self.assertRaises(ValueError, self.loop.run_until_complete, coro)
@@ -1813,7 +1815,6 @@ def getaddrinfo(*args, **kw):
18131815
coro = self.loop.create_datagram_endpoint(
18141816
lambda: MyDatagramProto(loop=self.loop),
18151817
local_addr=('1.2.3.4', 0),
1816-
reuse_address=False,
18171818
reuse_port=reuseport_supported)
18181819

18191820
t, p = self.loop.run_until_complete(coro)

Lib/test/test_py_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __new__(mcls, name, bases, dct, *, source_date_epoch):
5151
class PyCompileTestsBase:
5252

5353
def setUp(self):
54-
self.directory = tempfile.mkdtemp()
54+
self.directory = tempfile.mkdtemp(dir=os.getcwd())
5555
self.source_path = os.path.join(self.directory, '_test.py')
5656
self.pyc_path = self.source_path + 'c'
5757
self.cache_path = importlib.util.cache_from_source(self.source_path)

Misc/NEWS.d/3.7.6.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. bpo: 38295
2+
.. date: 2019-12-17-03-43-04
3+
.. nonce: hgDvlB
4+
.. release date: 2019-12-18
5+
.. section: macOS
6+
7+
Prevent failure of test_relative_path in test_py_compile on macOS Catalina.

Modules/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ static const char usage_5[] =
131131
"PYTHONHOME : alternate <prefix> directory (or <prefix>%lc<exec_prefix>).\n"
132132
" The default module search path uses %s.\n"
133133
"PYTHONCASEOK : ignore case in 'import' statements (Windows).\n"
134+
"PYTHONUTF8: if set to 1, enable the UTF-8 mode.\n"
134135
"PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr.\n"
135136
"PYTHONFAULTHANDLER: dump the Python traceback on fatal errors.\n";
136137
static const char usage_6[] =

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
This is Python version 3.7.6 candidate 1
2-
========================================
1+
This is Python version 3.7.6
2+
============================
33

44
.. image:: https://travis-ci.org/python/cpython.svg?branch=3.7
55
:alt: CPython build status on Travis CI

0 commit comments

Comments
 (0)