This commit is contained in:
Ned Deily 2018-05-02 03:41:45 -04:00
parent 3c5d3f519d
commit eb96c37699
52 changed files with 932 additions and 584 deletions

View File

@ -20,10 +20,10 @@
#define PY_MINOR_VERSION 7
#define PY_MICRO_VERSION 0
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
#define PY_RELEASE_SERIAL 3
#define PY_RELEASE_SERIAL 4
/* Version as a string */
#define PY_VERSION "3.7.0b3+"
#define PY_VERSION "3.7.0b4"
/*--end constants--*/
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

File diff suppressed because it is too large Load Diff

466
Misc/NEWS.d/3.7.0b4.rst Normal file
View File

@ -0,0 +1,466 @@
.. bpo: 33363
.. date: 2018-04-26-22-48-28
.. nonce: 8RCnN2
.. release date: 2018-05-02
.. section: Core and Builtins
Raise a SyntaxError for ``async with`` and ``async for`` statements outside
of async functions.
..
.. bpo: 33128
.. date: 2018-04-24-22-31-04
.. nonce: g2yLuf
.. section: Core and Builtins
Fix a bug that causes PathFinder to appear twice on sys.meta_path. Patch by
Pablo Galindo Salgado.
..
.. bpo: 33312
.. date: 2018-04-19-08-30-07
.. nonce: mDe2iL
.. section: Core and Builtins
Fixed clang ubsan (undefined behavior sanitizer) warnings in dictobject.c by
adjusting how the internal struct _dictkeysobject shared keys structure is
declared.
..
.. bpo: 33231
.. date: 2018-04-05-22-20-44
.. nonce: 3Jmo0q
.. section: Core and Builtins
Fix potential memory leak in ``normalizestring()``.
..
.. bpo: 33205
.. date: 2018-04-03-00-58-41
.. nonce: lk2F3r
.. section: Core and Builtins
Change dict growth function from
``round_up_to_power_2(used*2+hashtable_size/2)`` to
``round_up_to_power_2(used*3)``. Previously, dict is shrinked only when
``used == 0``. Now dict has more chance to be shrinked.
..
.. bpo: 29922
.. date: 2018-04-03-00-30-25
.. nonce: CdLuMl
.. section: Core and Builtins
Improved error messages in 'async with' when ``__aenter__()`` or
``__aexit__()`` return non-awaitable object.
..
.. bpo: 33199
.. date: 2018-04-02-09-32-40
.. nonce: TPnxQu
.. section: Core and Builtins
Fix ``ma_version_tag`` in dict implementation is uninitialized when copying
from key-sharing dict.
..
.. bpo: 33281
.. date: 2018-05-01-22-35-50
.. nonce: d4jOt4
.. section: Library
Fix ctypes.util.find_library regression on macOS.
..
.. bpo: 33383
.. date: 2018-04-29-11-15-38
.. nonce: g32YWn
.. section: Library
Fixed crash in the get() method of the :mod:`dbm.ndbm` database object when
it is called with a single argument.
..
.. bpo: 33329
.. date: 2018-04-23-13-21-39
.. nonce: lQ-Eod
.. section: Library
Fix multiprocessing regression on newer glibcs
..
.. bpo: 991266
.. date: 2018-04-21-00-24-08
.. nonce: h93TP_
.. section: Library
Fix quoting of the ``Comment`` attribute of
:class:`http.cookies.SimpleCookie`.
..
.. bpo: 33131
.. date: 2018-04-20-10-43-17
.. nonce: L2E977
.. section: Library
Upgrade bundled version of pip to 10.0.1.
..
.. bpo: 33308
.. date: 2018-04-18-19-12-25
.. nonce: fW75xi
.. section: Library
Fixed a crash in the :mod:`parser` module when converting an ST object to a
tree of tuples or lists with ``line_info=False`` and ``col_info=True``.
..
.. bpo: 33266
.. date: 2018-04-16-15-59-21
.. nonce: w2PAm-
.. section: Library
lib2to3 now recognizes ``rf'...'`` strings.
..
.. bpo: 11594
.. date: 2018-04-16-08-42-03
.. nonce: QLo4vv
.. section: Library
Ensure line-endings are respected when using lib2to3.
..
.. bpo: 33254
.. date: 2018-04-13-15-14-47
.. nonce: DS4KFK
.. section: Library
Have :func:`importlib.resources.contents` and
:meth:`importlib.abc.ResourceReader.contents` return an :term:`iterable`
instead of an :term:`iterator`.
..
.. bpo: 33256
.. date: 2018-04-10-20-57-14
.. nonce: ndHkqu
.. section: Library
Fix display of ``<module>`` call in the html produced by ``cgitb.html()``.
Patch by Stéphane Blondon.
..
.. bpo: 33185
.. date: 2018-04-08-22-54-07
.. nonce: Id-Ba9
.. section: Library
Fixed regression when running pydoc with the :option:`-m` switch. (The
regression was introduced in 3.7.0b3 by the resolution of :issue:`33053`)
This fix also changed pydoc to add ``os.getcwd()`` to :data:`sys.path` when
necessary, rather than adding ``"."``.
..
.. bpo: 33169
.. date: 2018-04-06-14-56-26
.. nonce: ByhDqb
.. section: Library
Delete entries of ``None`` in :data:`sys.path_importer_cache` when
:meth:`importlib.machinery.invalidate_caches` is called.
..
.. bpo: 33217
.. date: 2018-04-05-13-36-09
.. nonce: FfOKDI
.. section: Library
Deprecate looking up non-Enum objects in Enum classes and Enum members (will
raise :exc:`TypeError` in 3.8+).
..
.. bpo: 33203
.. date: 2018-04-05-11-09-45
.. nonce: Hje9Py
.. section: Library
``random.Random.choice()`` now raises ``IndexError`` for empty sequences
consistently even when called from subclasses without a ``getrandbits()``
implementation.
..
.. bpo: 33224
.. date: 2018-04-04-23-41-30
.. nonce: pyR0jB
.. section: Library
Update difflib.mdiff() for PEP 479. Convert an uncaught StopIteration in a
generator into a return-statement.
..
.. bpo: 33209
.. date: 2018-04-03-10-37-13
.. nonce: 9sGWE_
.. section: Library
End framing at the end of C implementation of :func:`pickle.Pickler.dump`.
..
.. bpo: 20104
.. date: 2018-04-01-19-21-04
.. nonce: -AKcGa
.. section: Library
Improved error handling and fixed a reference leak in
:func:`os.posix_spawn()`.
..
.. bpo: 33175
.. date: 2018-03-29-04-32-25
.. nonce: _zs1yM
.. section: Library
In dataclasses, Field.__set_name__ now looks up the __set_name__ special
method on the class, not the instance, of the default value.
..
.. bpo: 33097
.. date: 2018-03-18-16-48-23
.. nonce: Yl4gI2
.. section: Library
Raise RuntimeError when ``executor.submit`` is called during interpreter
shutdown.
..
.. bpo: 31908
.. date: 2017-10-31
.. nonce: g4xh8x
.. section: Library
Fix output of cover files for ``trace`` module command-line tool. Previously
emitted cover files only when ``--missing`` option was used. Patch by
Michael Selik.
..
.. bpo: 33378
.. date: 2018-04-29-04-02-18
.. nonce: -anAHN
.. section: Documentation
Add Korean language switcher for https://docs.python.org/3/
..
.. bpo: 33276
.. date: 2018-04-20-14-09-36
.. nonce: rA1z_3
.. section: Documentation
Clarify that the ``__path__`` attribute on modules cannot be just any value.
..
.. bpo: 33201
.. date: 2018-04-01-21-03-41
.. nonce: aa8Lkl
.. section: Documentation
Modernize documentation for writing C extension types.
..
.. bpo: 33195
.. date: 2018-04-01-14-30-36
.. nonce: dRS-XX
.. section: Documentation
Deprecate ``Py_UNICODE`` usage in ``c-api/arg`` document. ``Py_UNICODE``
related APIs are deprecated since Python 3.3, but it is missed in the
document.
..
.. bpo: 8243
.. date: 2018-01-13-20-30-53
.. nonce: s98r28
.. section: Documentation
Add a note about curses.addch and curses.addstr exception behavior when
writing outside a window, or pad.
..
.. bpo: 32337
.. date: 2017-12-22-17-29-37
.. nonce: eZe-ID
.. section: Documentation
Update documentation related with ``dict`` order.
..
.. bpo: 33358
.. date: 2018-04-27-11-46-35
.. nonce: _OcR59
.. section: Tests
Fix ``test_embed.test_pre_initialization_sys_options()`` when the
interpreter is built with ``--enable-shared``.
..
.. bpo: 33394
.. date: 2018-04-30-17-36-46
.. nonce: _Vdi4t
.. section: Build
Enable the verbose build for extension modules, when GNU make is passed
macros on the command line.
..
.. bpo: 33393
.. date: 2018-04-30-17-19-37
.. nonce: HkVCqI
.. section: Build
Update config.guess and config.sub files.
..
.. bpo: 33377
.. date: 2018-04-30-16-53-00
.. nonce: QBh6vP
.. section: Build
Add new triplets for mips r6 and riscv variants (used in extension
suffixes).
..
.. bpo: 32232
.. date: 2018-04-17-00-38-19
.. nonce: o7G_UO
.. section: Build
By default, modules configured in `Modules/Setup` are no longer built with
`-DPy_BUILD_CORE`. Instead, modules that specifically need that preprocessor
definition include it in their individual entries.
..
.. bpo: 33182
.. date: 2018-03-30-14-55-48
.. nonce: CePczb
.. section: Build
The embedding tests can once again be built with clang 6.0
..
.. bpo: 33184
.. date: 2018-04-13-11-28-55
.. nonce: 7YhqQE
.. section: Windows
Update Windows installer to use OpenSSL 1.1.0h.
..
.. bpo: 33184
.. date: 2018-04-07-00-51-34
.. nonce: 3j208P
.. section: macOS
Update macOS installer build to use OpenSSL 1.1.0h.
..
.. bpo: 21474
.. date: 2018-04-29-16-13-02
.. nonce: bglg-F
.. section: IDLE
Update word/identifier definition from ascii to unicode. In text and entry
boxes, this affects selection by double-click, movement left/right by
control-left/right, and deletion left/right by control-BACKSPACE/DEL.
..
.. bpo: 33204
.. date: 2018-04-02-00-28-13
.. nonce: NBsuIv
.. section: IDLE
IDLE: consistently color invalid string prefixes. A 'u' string prefix cannot
be paired with either 'r' or 'f'. Consistently color as much of the prefix,
starting at the right, as is valid. Revise and extend colorizer test.
..
.. bpo: 33189
.. date: 2018-04-03-18-10-00
.. nonce: QrXR00
.. section: Tools/Demos
:program:`pygettext.py` now recognizes only literal strings as docstrings
and translatable strings, and rejects bytes literals and f-string
expressions.
..
.. bpo: 31920
.. date: 2018-03-26-18-54-24
.. nonce: u_WKsT
.. section: Tools/Demos
Fixed handling directories as arguments in the ``pygettext`` script. Based
on patch by Oleg Krasnikov.
..
.. bpo: 29673
.. date: 2018-03-16-17-25-05
.. nonce: m8QtaW
.. section: Tools/Demos
Fix pystackv and pystack gdbinit macros.
..
.. bpo: 31583
.. date: 2017-09-26-10-11-21
.. nonce: TM90_H
.. section: Tools/Demos
Fix 2to3 for using with --add-suffix option but without --output-dir option
for relative path to files in current directory.

View File

@ -1 +0,0 @@
The embedding tests can once again be built with clang 6.0

View File

@ -1,3 +0,0 @@
By default, modules configured in `Modules/Setup` are no longer built with
`-DPy_BUILD_CORE`. Instead, modules that specifically need that preprocessor
definition include it in their individual entries.

View File

@ -1,2 +0,0 @@
Add new triplets for mips r6 and riscv variants (used in extension
suffixes).

View File

@ -1 +0,0 @@
Update config.guess and config.sub files.

View File

@ -1,2 +0,0 @@
Enable the verbose build for extension modules, when GNU make is passed
macros on the command line.

View File

@ -1,2 +0,0 @@
Fix ``ma_version_tag`` in dict implementation is uninitialized when copying
from key-sharing dict.

View File

@ -1,2 +0,0 @@
Improved error messages in 'async with' when ``__aenter__()`` or
``__aexit__()`` return non-awaitable object.

View File

@ -1,3 +0,0 @@
Change dict growth function from ``round_up_to_power_2(used*2+hashtable_size/2)`` to
``round_up_to_power_2(used*3)``. Previously, dict is shrinked only when ``used == 0``.
Now dict has more chance to be shrinked.

View File

@ -1 +0,0 @@
Fix potential memory leak in ``normalizestring()``.

View File

@ -1,3 +0,0 @@
Fixed clang ubsan (undefined behavior sanitizer) warnings in dictobject.c by
adjusting how the internal struct _dictkeysobject shared keys structure is
declared.

View File

@ -1,2 +0,0 @@
Fix a bug that causes PathFinder to appear twice on sys.meta_path. Patch by
Pablo Galindo Salgado.

View File

@ -1,2 +0,0 @@
Raise a SyntaxError for ``async with`` and ``async for`` statements outside
of async functions.

View File

@ -1 +0,0 @@
Update documentation related with ``dict`` order.

View File

@ -1,2 +0,0 @@
Add a note about curses.addch and curses.addstr exception behavior when
writing outside a window, or pad.

View File

@ -1,3 +0,0 @@
Deprecate ``Py_UNICODE`` usage in ``c-api/arg`` document. ``Py_UNICODE``
related APIs are deprecated since Python 3.3, but it is missed in the
document.

View File

@ -1 +0,0 @@
Modernize documentation for writing C extension types.

View File

@ -1 +0,0 @@
Clarify that the ``__path__`` attribute on modules cannot be just any value.

View File

@ -1 +0,0 @@
Add Korean language switcher for https://docs.python.org/3/

View File

@ -1,3 +0,0 @@
IDLE: consistently color invalid string prefixes. A 'u' string prefix cannot
be paired with either 'r' or 'f'. Consistently color as much of the prefix,
starting at the right, as is valid. Revise and extend colorizer test.

View File

@ -1,3 +0,0 @@
Update word/identifier definition from ascii to unicode. In text and entry
boxes, this affects selection by double-click, movement left/right by
control-left/right, and deletion left/right by control-BACKSPACE/DEL.

View File

@ -1,3 +0,0 @@
Fix output of cover files for ``trace`` module command-line tool.
Previously emitted cover files only when ``--missing`` option was used.
Patch by Michael Selik.

View File

@ -1,2 +0,0 @@
Raise RuntimeError when ``executor.submit`` is called during interpreter
shutdown.

View File

@ -1,2 +0,0 @@
In dataclasses, Field.__set_name__ now looks up the __set_name__ special
method on the class, not the instance, of the default value.

View File

@ -1 +0,0 @@
Improved error handling and fixed a reference leak in :func:`os.posix_spawn()`.

View File

@ -1 +0,0 @@
End framing at the end of C implementation of :func:`pickle.Pickler.dump`.

View File

@ -1,2 +0,0 @@
Update difflib.mdiff() for PEP 479. Convert an uncaught StopIteration in a
generator into a return-statement.

View File

@ -1,3 +0,0 @@
``random.Random.choice()`` now raises ``IndexError`` for empty sequences
consistently even when called from subclasses without a ``getrandbits()``
implementation.

View File

@ -1,2 +0,0 @@
Deprecate looking up non-Enum objects in Enum classes and Enum members (will
raise :exc:`TypeError` in 3.8+).

View File

@ -1,2 +0,0 @@
Delete entries of ``None`` in :data:`sys.path_importer_cache` when
:meth:`importlib.machinery.invalidate_caches` is called.

View File

@ -1,5 +0,0 @@
Fixed regression when running pydoc with the :option:`-m` switch. (The regression
was introduced in 3.7.0b3 by the resolution of :issue:`33053`)
This fix also changed pydoc to add ``os.getcwd()`` to :data:`sys.path` when
necessary, rather than adding ``"."``.

View File

@ -1 +0,0 @@
Fix display of ``<module>`` call in the html produced by ``cgitb.html()``. Patch by Stéphane Blondon.

View File

@ -1,3 +0,0 @@
Have :func:`importlib.resources.contents` and
:meth:`importlib.abc.ResourceReader.contents` return an :term:`iterable` instead
of an :term:`iterator`.

View File

@ -1 +0,0 @@
Ensure line-endings are respected when using lib2to3.

View File

@ -1 +0,0 @@
lib2to3 now recognizes ``rf'...'`` strings.

View File

@ -1,2 +0,0 @@
Fixed a crash in the :mod:`parser` module when converting an ST object to a
tree of tuples or lists with ``line_info=False`` and ``col_info=True``.

View File

@ -1 +0,0 @@
Upgrade bundled version of pip to 10.0.1.

View File

@ -1 +0,0 @@
Fix quoting of the ``Comment`` attribute of :class:`http.cookies.SimpleCookie`.

View File

@ -1 +0,0 @@
Fix multiprocessing regression on newer glibcs

View File

@ -1,2 +0,0 @@
Fixed crash in the get() method of the :mod:`dbm.ndbm` database object when
it is called with a single argument.

View File

@ -1 +0,0 @@
Fix ctypes.util.find_library regression on macOS.

View File

@ -1,2 +0,0 @@
Fix ``test_embed.test_pre_initialization_sys_options()`` when the interpreter
is built with ``--enable-shared``.

View File

@ -1,2 +0,0 @@
Fix 2to3 for using with --add-suffix option but without --output-dir
option for relative path to files in current directory.

View File

@ -1 +0,0 @@
Fix pystackv and pystack gdbinit macros.

View File

@ -1,2 +0,0 @@
Fixed handling directories as arguments in the ``pygettext`` script. Based
on patch by Oleg Krasnikov.

View File

@ -1,2 +0,0 @@
:program:`pygettext.py` now recognizes only literal strings as docstrings
and translatable strings, and rejects bytes literals and f-string expressions.

View File

@ -1 +0,0 @@
Update Windows installer to use OpenSSL 1.1.0h.

View File

@ -1 +0,0 @@
Update macOS installer build to use OpenSSL 1.1.0h.

View File

@ -1,5 +1,5 @@
This is Python version 3.7.0 beta 3+
====================================
This is Python version 3.7.0 beta 4
===================================
.. image:: https://travis-ci.org/python/cpython.svg?branch=master
:alt: CPython build status on Travis CI

14
configure vendored
View File

@ -781,7 +781,6 @@ infodir
docdir
oldincludedir
includedir
runstatedir
localstatedir
sharedstatedir
sysconfdir
@ -894,7 +893,6 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@ -1147,15 +1145,6 @@ do
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-runstatedir | --runstatedir | --runstatedi | --runstated \
| --runstate | --runstat | --runsta | --runst | --runs \
| --run | --ru | --r)
ac_prev=runstatedir ;;
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
| --run=* | --ru=* | --r=*)
runstatedir=$ac_optarg ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@ -1293,7 +1282,7 @@ fi
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
libdir localedir mandir runstatedir
libdir localedir mandir
do
eval ac_val=\$$ac_var
# Remove trailing slashes.
@ -1446,7 +1435,6 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]