From: Benjamin Peterson Date: Thu, 29 Dec 2016 04:03:23 +0000 (-0800) Subject: merge 3.6 (#29085) X-Git-Tag: v3.7.0a1~1664 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e70ca463eb551fb84b767974b7345606a502390e;p=python merge 3.6 (#29085) --- e70ca463eb551fb84b767974b7345606a502390e diff --cc Misc/NEWS index 1987e75c0e,3436c0a52f..31fdde1d04 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -695,91 -105,15 +695,94 @@@ Test - Issue #26939: Add the support.setswitchinterval() function to fix test_functools hanging on the Android armv7 qemu emulator. -Build + +What's New in Python 3.6.1 release candidate 1? +=============================================== + +*Release date: XXXX-XX-XX* + +Core and Builtins +----------------- + +- Issue #28932: Do not include if it does not exist. + +- Issue #25677: Correct the positioning of the syntax error caret for + indented blocks. Based on patch by Michael Layzell. + +- Issue #29000: Fixed bytes formatting of octals with zero padding in alternate + form. + +- Issue #26919: On Android, operating system data is now always encoded/decoded + to/from UTF-8, instead of the locale encoding to avoid inconsistencies with + os.fsencode() and os.fsdecode() which are already using UTF-8. + +- Issue #28991: functools.lru_cache() was susceptible to an obscure reentrancy + bug triggerable by a monkey-patched len() function. + +- Issue #28739: f-string expressions are no longer accepted as docstrings and + by ast.literal_eval() even if they do not include expressions. + +- Issue #28512: Fixed setting the offset attribute of SyntaxError by + PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject(). + +- Issue #28918: Fix the cross compilation of xxlimited when Python has been + built with Py_DEBUG defined. + +- Issue #28731: Optimize _PyDict_NewPresized() to create correct size dict. + Improve speed of dict literal with constant keys up to 30%. + +Library +------- + ++- Issue #29085: Allow random.Random.seed() to use high quality OS randomness ++ rather than the pid and time. ++ +- Issue 28923: Remove editor artifacts from Tix.py. + +- Issue #29055: Neaten-up empty population error on random.choice() + by suppressing the upstream exception. + +- Issue #28871: Fixed a crash when deallocate deep ElementTree. + +- Issue #19542: Fix bugs in WeakValueDictionary.setdefault() and + WeakValueDictionary.pop() when a GC collection happens in another + thread. + +- Issue #20191: Fixed a crash in resource.prlimit() when pass a sequence that + doesn't own its elements as limits. + +- Issue #28779: multiprocessing.set_forkserver_preload() would crash the + forkserver process if a preloaded module instantiated some + multiprocessing objects such as locks. + +- Issue #28847: dbm.dumb now supports reading read-only files and no longer + writes the index file when it is not changed. + +- Issue #26937: The chown() method of the tarfile.TarFile class does not fail + now when the grp module cannot be imported, as for example on Android + platforms. + +Windows +------- + +- Issue #25778: winreg does not truncate string correctly (Patch by Eryk Sun) + +- Issue #28896: Deprecate WindowsRegistryFinder and disable it by default. + +Tests ----- -- Issue #28768: Fix implicit declaration of function _setmode. Patch by - Masayuki Yamamoto +- Issue #28950: Disallow -j0 to be combined with -T/-l in regrtest + command line arguments. -- Issue #29080: Removes hard dependency on hg.exe from PCBuild/build.bat +- Issue #28683: Fix the tests that bind() a unix socket and raise + PermissionError on Android for a non-root user. -- Issue #23903: Added missed names to PC/python3.def. +- Issue #26939: Add the support.setswitchinterval() function to fix + test_functools hanging on the Android armv7 qemu emulator. + +Build +----- - Issue #28762: lockf() is available on Android API level 24, but the F_LOCK macro is not defined in android-ndk-r13.