Kaydet (Commit) 75a402a2 authored tarafından Ned Deily's avatar Ned Deily

3.7.2rc1

üst 93839697
......@@ -18,12 +18,12 @@
/*--start constants--*/
#define PY_MAJOR_VERSION 3
#define PY_MINOR_VERSION 7
#define PY_MICRO_VERSION 1
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
#define PY_RELEASE_SERIAL 0
#define PY_MICRO_VERSION 2
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_GAMMA
#define PY_RELEASE_SERIAL 1
/* Version as a string */
#define PY_VERSION "3.7.1+"
#define PY_VERSION "3.7.2rc1"
/*--end constants--*/
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
......
This diff is collapsed.
This diff is collapsed.
Fix an undefined behaviour in the pthread implementation of
:c:func:`PyThread_start_new_thread`: add a function wrapper to always return
``NULL``.
Restores the use of pyexpatns.h to isolate our embedded copy of the expat C
library so that its symbols do not conflict at link or dynamic loading time
with an embedding application or other extension modules with their own
version of libexpat.
Fix a compiler error when statically linking `pyexpat` in `Modules/Setup`.
When building Python with clang and LTO, LTO flags are no longer passed into
CFLAGS to build third-party C extensions through distutils.
The Windows installer (MSI) now also install internal header files
(``Include/internal/`` subdirectory).
Adds _Py_SetProgramFullPath so embedders may override sys.executable
``make install`` now also installs the internal API:
``Include/internal/*.h`` header files.
Fix memory leak in :c:func:`PyUnicode_EncodeLocale` and
:c:func:`PyUnicode_EncodeFSDefault` on error handling.
Do not assume signed integer overflow behavior (C undefined behavior) when
performing set hash table resizing.
Fix a possible null pointer dereference in Modules/_ssl.c. Patch by Zackery
Spytz.
Fixed crash in :func:`bytes` when the :class:`list` argument is mutated
while it is iterated.
:class:`bytes` and :class:`bytearray` constructors no longer convert
unexpected exceptions (e.g. :exc:`MemoryError` and :exc:`KeyboardInterrupt`)
to :exc:`TypeError`.
:mod:`socket`: Fix off-by-one bug in length check for ``AF_ALG`` name and type.
Clarify in the docstrings of :mod:`os` methods that path-like objects are also accepted
as input parameters.
Fix an off by one error in the bytecode peephole optimizer where it could read
bytes beyond the end of bounds of an array when removing unreachable code.
This bug was present in every release of Python 3.6 and 3.7 until now.
The interpreter and extension modules have had annotations added so that
they work properly under clang's Memory Sanitizer. A new configure flag
--with-memory-sanitizer has been added to make test builds of this nature
easier to perform.
Fixed an out of bounds memory access when parsing a truncated unicode
escape sequence at the end of a string such as ``'\N'``. It would read
one byte beyond the end of the memory allocation.
Fix a possible segfault involving a newly-created coroutine. Patch by
Zackery Spytz.
For :meth:`str.format`, :meth:`float.__format__` and
:meth:`complex.__format__` methods for non-ASCII decimal point when using
the "n" formatter.
Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the C locale
if the LC_CTYPE locale is "C".
Fixed the code page decoder for input longer than 2 GiB containing
undecodable bytes.
Internal attributes' names of unittest.mock._Call and
unittest.mock.MagicProxy (name, parent & from_kall) are now prefixed with
_mock_ in order to prevent clashes with widely used object attributes.
Fixed minor typo in test function name.
Fix various issues with memory allocation error handling. Patch by Zackery
Spytz.
Fixed error handling in pickling methods when fail to look up builtin
"getattr".
Update the faq/windows.html to use the py command from PEP 397 instead of
python.
Document ``getargspec``, ``from_function`` and ``from_builtin`` as
deprecated in their respective docstring, and include version since
deprecation in DeprecationWarning message.
Create availability directive for documentation. Original patch by Georg
Brandl.
Use app.add_object_type() instead of the deprecated Sphinx function
app.description_unit()
Rename documentation for :mod:`email.utils` to ``email.utils.rst``.
Fix the documentation with the role ``exc`` for the appropriated exception. Patch by
Stéphane Wirtel
Fix the documentation about an unexisting `f_restricted` attribute in the
frame object. Patch by Stéphane Wirtel
Remove mention of ``typing.io`` and ``typing.re``. Their types should be
imported from ``typing`` directly.
Update idlelib help files for the current doc build. The main change is the
elimination of chapter-section numbers.
Update idlelib.help.copy_string docstring. We now use git and backporting
instead of hg and forward merging.
Document the IDLE document viewer in the IDLE doc. Add a paragraph in "Help
and preferences", "Help sources" subsection.
Add IDLE doc subsection explaining editor windows. Topics include opening,
title and status bar, .py* extension, and running.
Improve the doc about IDLE running user code. The section is renamed from
"IDLE -- console differences" is renamed "Running user code".
It mostly covers the implications of using custom sys.stdxxx objects.
Document that IDLE's shell has no line limit. A program that runs
indefinitely can overfill memory.
Document two IDLE on MacOS issues. The System Preferences Dock "prefer tabs
always" setting disables some IDLE features. Menus are a bit different than
as described for Windows and Linux.
On macOS, warn if the system preference "Prefer tabs when opening documents"
is set to "Always".
\ No newline at end of file
Implemented unpickling instances of :class:`~datetime.datetime`,
:class:`~datetime.date` and :class:`~datetime.time` pickled by Python 2.
``encoding='latin1'`` should be used for successful decoding.
compileall: import ProcessPoolExecutor only when needed, preventing hangs on
low resource platforms
:meth:`sqlite3.Connection.create_aggregate`,
:meth:`sqlite3.Connection.create_function`,
:meth:`sqlite3.Connection.set_authorizer`,
:meth:`sqlite3.Connection.set_progress_handler` methods raises TypeError
when unhashable objects are passed as callable. These methods now don't pass
such objects to SQLite API. Previous behavior could lead to segfaults. Patch
by Sergey Fedoseev.
OrderedDict iterators are not exhausted during pickling anymore. Patch by
Sergey Fedoseev.
Fix possible mojibake in the error message of `pwd.getpwnam` and
`grp.getgrnam` using string representation because of invisible characters
or trailing whitespaces. Patch by William Grzybowski.
`Enum._missing_`: raise `ValueError` if None returned and `TypeError` if
non-member is returned.
Fix bug that prevented using :meth:`reset_mock <unittest.mock.Mock.reset_mock>`
on mock instances with deleted attributes
ZIP files created by :mod:`distutils` will now include entries for
directories.
The :envvar:`SOURCE_DATE_EPOCH` environment variable no longer overrides the
value of the *invalidation_mode* argument to :func:`py_compile.compile`, and
determines its default value instead.
Adding ``max_num_fields`` to ``cgi.FieldStorage`` to make DOS attacks harder by
limiting the number of ``MiniFieldStorage`` objects created by ``FieldStorage``.
Fix ``TclError`` in ``tkinter.Spinbox.selection_element()``. Patch by
Juliette Monsel.
Methods ``find()``, ``findtext()`` and ``findall()`` of the ``Element``
class in the :mod:`xml.etree.ElementTree` module are now able to find
children which are instances of ``Element`` subclasses.
:mod:`pydoc` now supports aliases not only to methods defined in
the end class, but also to inherited methods. The docstring is not
duplicated for aliases.
The :term:`2to3` :2to3fixer:`execfile` fixer now opens the file with mode
``'rb'``. Patch by Zackery Spytz.
dataclasses now handle recursive reprs without raising RecursionError.
Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert
Kuska
Fixed references leaks when call the ``__setstate__()`` method of
:class:`xml.etree.ElementTree.Element` in the C implementation for already
initialized element.
Fixed a leak in Tkinter when pass the Python wrapper around Tcl_Obj back to
Tcl/Tk.
Fix ``ntpath.abspath`` regression where it didn't remove a trailing
separator on Windows. Patch by Tim Graham.
:meth:`socketserver.BaseServer.serve_forever` now exits immediately if it's
:meth:`~socketserver.BaseServer.shutdown` method is called while it is
polling for new events.
Improve difflib.SequenceManager.get_matching_blocks doc by adding
'non-overlapping' and changing '!=' to '<'.
Fix incorrect parsing of :class:`_io.IncrementalNewlineDecoder`'s
*translate* argument.
Modify the following fnctl function to retry if interrupted by a signal
(EINTR): flock, lockf, fnctl
The warnings module now suggests to enable tracemalloc if the source is
specified, the tracemalloc module is available, but tracemalloc is not
tracing memory allocations.
Recursively check arguments when testing for equality of
:class:`unittest.mock.call` objects and add note that tracking of parameters
used to create ancestors of mocks in ``mock_calls`` is not possible.
Update ensurepip to install pip 18.1 and setuptools 40.6.2.
:func:`locale.localeconv` now sets temporarily the ``LC_CTYPE`` locale to the
``LC_MONETARY`` locale if the two locales are different and monetary strings
are non-ASCII. This temporary change affects other threads.
Fix regression in ``webbrowser`` where default browsers may be preferred
over browsers in the ``BROWSER`` environment variable.
Fix ``ResourceWarning`` in :func:`platform.dist` on SuSE and Caldera
OpenLinux. Patch by Ville Skyttä.
Fixed possible crash in ``os.utime()`` on Windows when pass incorrect
arguments.
Add generic version of ``collections.OrderedDict`` to the ``typing`` module. Patch by Ismo Toijala.
Enable TCP_NODELAY on Windows for proactor asyncio event loop.
Fix a bug in :func:`select.select` where, in some cases, the file descriptor
sequences were returned unmodified after a signal interruption, even though the
file descriptors might not be ready yet. :func:`select.select` will now always
return empty lists if a timeout has occurred. Patch by Oran Avraham.
:func:`posixpath.expanduser` now returns the input *path* unchanged if the
``HOME`` environment variable is not set and the current user has no home
directory (if the current user identifier doesn't exist in the password
database). This change fix the :mod:`site` module if the current user doesn't
exist in the password database (if the user has no home directory).
Revert the fix for this issue previously released in 3.7.1 pending
further investigation:
Fix a reference issue inside multiprocessing.Pool that caused the
pool to remain alive if it was deleted without being closed or terminated
explicitly.
When a :class:`Mock` instance was used to wrap an object, if `side_effect`
is used in one of the mocks of it methods, don't call the original
implementation and return the result of using the side effect the same way
that it is done with return_value.
Fix xml.dom.minidom cloneNode() on a document with an entity: pass the
correct arguments to the user data handler of an entity.
The xml.sax and xml.dom.domreg no longer use environment variables to
override parser implementations when sys.flags.ignore_environment is set by
-E or -I arguments.
The :option:`-I` command line option (run Python in isolated mode) is now
also copied by the :mod:`multiprocessing` and :mod:`distutils` modules when
spawning child processes. Previously, only :option:`-E` and :option:`-s` options
(enabled by :option:`-I`) were copied.
regrtest issue a warning when no tests have been executed in a particular
test file. Also, a new final result state is issued if no test have been
executed across all test files. Patch by Pablo Galindo.
After several reports that test_gdb does not work properly on macOS and
since gdb is not shipped by default anymore, test_gdb is now skipped on
macOS when LLVM Clang has been used to compile Python. Patch by
Lysandros Nikolaou
Fix ``mktime()`` overflow error in ``test_email``: run
``test_localtime_daylight_true_dst_true()`` and
``test_localtime_daylight_false_dst_true()`` with a specific timezone.
Modify test_asyncio to use the certificate set from the test directory.
test_multiprocessing_fork may crash on recent versions of macOS. Until the
issue is resolved, skip the test on macOS.
python-gdb.py now handles errors on computing the line number of a Python
frame.
Fix usage of GetLastError() instead of errno in os.execve() and
os.truncate().
Remove _distutils_findvs module and use vswhere.exe instead.
venv on Windows will now use a python.exe redirector rather than copying the
actual binaries from the base environment.
On macOS, fix reading from and writing into a file with a size larger than 2 GiB.
\ No newline at end of file
Properly guard the use of the ``CLOCK_GETTIME`` et al. macros in ``timemodule``
on macOS.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment