Opened 6 years ago

Closed 6 years ago

#4395 closed task (fixed)

Python-3.7.2

Reported by: Anton Maisak Owned by: Douglas R. Reno
Priority: high Milestone: 8.4
Component: Book Version: SVN
Severity: normal Keywords: python
Cc:

Description

new point version

https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz df6ec36011808205beda239c72f947cb

In 3.7.2, :mod:venv on Windows no longer copies the original binaries, but creates redirector scripts named python.exe and pythonw.exe instead. This resolves a long standing issue where all virtual environments would have to be upgraded or recreated with each Python update. However, note that this release will still require recreation of virtual environments in order to get the new scripts.

Change History (3)

comment:1 by Douglas R. Reno, 6 years ago

Owner: changed from lfs-book to Douglas R. Reno
Status: newassigned

comment:2 by Douglas R. Reno, 6 years ago

Priority: normalhigh

3.7.2 Final

Library

    bpo-31715: Associate .mjs file extension with application/javascript MIME Type.

Build

    bpo-35499: make profile-opt no longer replaces CFLAGS_NODIST with CFLAGS. It now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST: existing CFLAGS_NODIST flags are kept.
    bpo-35257: Avoid leaking the linker flags from Link Time Optimizations (LTO) into distutils when compiling C extensions.

C API

    bpo-35259: Conditionally declare Py_FinalizeEx() (new in 3.6) based on Py_LIMITED_API. Patch by Arthur Neufeld.


3.7.2 RELEASE CANDIDATE

Python 3.7.2 release candidate 1

Release date: 2018-12-11
Security

    bpo-34812: The -I command line option (run Python in isolated mode) is now also copied by the multiprocessing and distutils modules when spawning child processes. Previously, only -E and -s options (enabled by -I) were copied.
    bpo-34791: 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.

Core and Builtins

    bpo-35444: Fixed error handling in pickling methods when fail to look up builtin “getattr”.
    bpo-35436: Fix various issues with memory allocation error handling. Patch by Zackery Spytz.
    bpo-35357: 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.
    bpo-35372: Fixed the code page decoder for input longer than 2 GiB containing undecodable bytes.
    bpo-35336: Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the C locale if the LC_CTYPE locale is “C”.
    bpo-33954: For str.format(), float.__format__() and complex.__format__() methods for non-ASCII decimal point when using the “n” formatter.
    bpo-35269: Fix a possible segfault involving a newly-created coroutine. Patch by Zackery Spytz.
    bpo-35214: 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.
    bpo-35214: 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.
    bpo-35193: 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.
    bpo-29341: Clarify in the docstrings of os methods that path-like objects are also accepted as input parameters.
    bpo-35050: socket: Fix off-by-one bug in length check for AF_ALG name and type.
    bpo-34974: bytes and bytearray constructors no longer convert unexpected exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError.
    bpo-34973: Fixed crash in bytes() when the list argument is mutated while it is iterated.
    bpo-34824: Fix a possible null pointer dereference in Modules/_ssl.c. Patch by Zackery Spytz.
    bpo-1621: Do not assume signed integer overflow behavior (C undefined behavior) when performing set hash table resizing.

Library

    bpo-35052: Fix xml.dom.minidom cloneNode() on a document with an entity: pass the correct arguments to the user data handler of an entity.
    bpo-35330: When a 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.
    bpo-34172: 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.
    bpo-10496: 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 site module if the current user doesn’t exist in the password database (if the user has no home directory).
    bpo-35310: Fix a bug in 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. select.select() will now always return empty lists if a timeout has occurred. Patch by Oran Avraham.
    bpo-35380: Enable TCP_NODELAY on Windows for proactor asyncio event loop.
    bpo-35341: Add generic version of collections.OrderedDict to the typing module. Patch by Ismo Toijala.
    bpo-35371: Fixed possible crash in os.utime() on Windows when pass incorrect arguments.
    bpo-27903: Fix ResourceWarning in platform.dist() on SuSE and Caldera OpenLinux. Patch by Ville Skyttä.
    bpo-35308: Fix regression in webbrowser where default browsers may be preferred over browsers in the BROWSER environment variable.
    bpo-28604: 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.
    bpo-35277: Update ensurepip to install pip 18.1 and setuptools 40.6.2.
    bpo-35226: Recursively check arguments when testing for equality of unittest.mock.call objects and add note that tracking of parameters used to create ancestors of mocks in mock_calls is not possible.
    bpo-29564: 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.
    bpo-35189: Modify the following fnctl function to retry if interrupted by a signal (EINTR): flock, lockf, fnctl
    bpo-35062: Fix incorrect parsing of _io.IncrementalNewlineDecoder’s translate argument.
    bpo-35079: Improve difflib.SequenceManager.get_matching_blocks doc by adding ‘non-overlapping’ and changing ‘!=’ to ‘<’.
    bpo-35017: socketserver.BaseServer.serve_forever() now exits immediately if it’s shutdown() method is called while it is polling for new events.
    bpo-31047: Fix ntpath.abspath regression where it didn’t remove a trailing separator on Windows. Patch by Tim Graham.
    bpo-34794: Fixed a leak in Tkinter when pass the Python wrapper around Tcl_Obj back to Tcl/Tk.
    bpo-35008: Fixed references leaks when call the __setstate__() method of xml.etree.ElementTree.Element in the C implementation for already initialized element.
    bpo-23420: Verify the value for the parameter ‘-s’ of the cProfile CLI. Patch by Robert Kuska
    bpo-33947: dataclasses now handle recursive reprs without raising RecursionError.
    bpo-16965: The 2to3 execfile fixer now opens the file with mode 'rb'. Patch by Zackery Spytz.
    bpo-34966: 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.
    bpo-34941: Methods find(), findtext() and findall() of the Element class in the xml.etree.ElementTree module are now able to find children which are instances of Element subclasses.
    bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). Patch by Juliette Monsel.
    bpo-34866: Adding max_num_fields to cgi.FieldStorage to make DOS attacks harder by limiting the number of MiniFieldStorage objects created by FieldStorage.
    bpo-34022: The SOURCE_DATE_EPOCH environment variable no longer overrides the value of the invalidation_mode argument to py_compile.compile(), and determines its default value instead.
    bpo-34738: ZIP files created by distutils will now include entries for directories.
    bpo-31177: Fix bug that prevented using reset_mock on mock instances with deleted attributes
    bpo-34536: Enum._missing_: raise ValueError if None returned and TypeError if non-member is returned.
    bpo-34604: 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.
    bpo-34574: OrderedDict iterators are not exhausted during pickling anymore. Patch by Sergey Fedoseev.
    bpo-34052: sqlite3.Connection.create_aggregate(), sqlite3.Connection.create_function(), sqlite3.Connection.set_authorizer(), 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.
    bpo-29877: compileall: import ProcessPoolExecutor only when needed, preventing hangs on low resource platforms
    bpo-22005: Implemented unpickling instances of datetime, date and time pickled by Python 2. encoding='latin1' should be used for successful decoding.

Documentation

    bpo-35089: Remove mention of typing.io and typing.re. Their types should be imported from typing directly.
    bpo-35038: Fix the documentation about an unexisting f_restricted attribute in the frame object. Patch by Stéphane Wirtel
    bpo-35044: Fix the documentation with the role exc for the appropriated exception. Patch by Stéphane Wirtel
    bpo-35035: Rename documentation for email.utils to email.utils.rst.
    bpo-34967: Use app.add_object_type() instead of the deprecated Sphinx function app.description_unit()
    bpo-11233: Create availability directive for documentation. Original patch by Georg Brandl.
    bpo-33594: Document getargspec, from_function and from_builtin as deprecated in their respective docstring, and include version since deprecation in DeprecationWarning message.
    bpo-32613: Update the faq/windows.html to use the py command from PEP 397 instead of python.

Tests

    bpo-33725: test_multiprocessing_fork may crash on recent versions of macOS. Until the issue is resolved, skip the test on macOS.
    bpo-35352: Modify test_asyncio to use the certificate set from the test directory.
    bpo-35317: 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.
    bpo-21263: 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
    bpo-34279: 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.

Build

    bpo-35296: The Windows installer (MSI) now also install internal header files (Include/internal/ subdirectory).
    bpo-35351: When building Python with clang and LTO, LTO flags are no longer passed into CFLAGS to build third-party C extensions through distutils.
    bpo-35139: Fix a compiler error when statically linking pyexpat in Modules/Setup.
    bpo-35011: 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.
    bpo-28015: Have –with-lto works correctly with clang.
    bpo-33015: Fix an undefined behaviour in the pthread implementation of PyThread_start_new_thread(): add a function wrapper to always return NULL.

Windows

    bpo-35401: Updates Windows build to OpenSSL 1.1.0j
    bpo-34977: venv on Windows will now use a python.exe redirector rather than copying the actual binaries from the base environment.
    bpo-34977: Adds support for building a Windows App Store package
    bpo-35067: Remove _distutils_findvs module and use vswhere.exe instead.
    bpo-34532: Fixes exit code of list version arguments for py.exe.
    bpo-32890: Fix usage of GetLastError() instead of errno in os.execve() and os.truncate().

macOS

    bpo-35402: Update macOS installer to use Tcl/Tk 8.6.9.1. [NOTE: This change was reverted for the released python.org 3.7.2 macOS installers due to regressions found in Tk 8.6.9.1. For now, the installers provide Tcl/Tk 8.6.8.]
    bpo-35401: Update macOS installer to use OpenSSL 1.1.0j.
    bpo-35025: Properly guard the use of the CLOCK_GETTIME et al. macros in timemodule on macOS.
    bpo-24658: On macOS, fix reading from and writing into a file with a size larger than 2 GiB.

IDLE

    bpo-35213: Where appropriate, use ‘macOS’ in idlelib.
    bpo-34864: On macOS, warn if the system preference “Prefer tabs when opening documents” is set to “Always”.
    bpo-34864: 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.
    bpo-35202: Remove unused imports from lib/idlelib
    bpo-33000: Document that IDLE’s shell has no line limit. A program that runs indefinitely can overfill memory.
    bpo-23220: Explain how IDLE’s Shell displays output.
    bpo-35099: 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.
    bpo-35097: Add IDLE doc subsection explaining editor windows. Topics include opening, title and status bar, .py* extension, and running.
    bpo-35093: Document the IDLE document viewer in the IDLE doc. Add a paragraph in “Help and preferences”, “Help sources” subsection.
    bpo-35088: Update idlelib.help.copy_string docstring. We now use git and backporting instead of hg and forward merging.
    bpo-35087: Update idlelib help files for the current doc build. The main change is the elimination of chapter-section numbers.

Tools/Demos

    bpo-34989: python-gdb.py now handles errors on computing the line number of a Python frame.

C API

    bpo-35322: Fix memory leak in PyUnicode_EncodeLocale() and PyUnicode_EncodeFSDefault() on error handling.
    bpo-35296: make install now also installs the internal API: Include/internal/*.h header files.
    bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable


Two security fixes.

comment:3 by Douglas R. Reno, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r11495

Note: See TracTickets for help on using tickets.