[python/cpython] 150cd1: bpo-29958: Minor improvements to zipfile and tarfi...
![](https://secure.gravatar.com/avatar/9181eb84f9c35729a3bad740fb7f9d93.jpg?s=120&d=mm&r=g)
Branch: refs/heads/selectors-refactoring Home: https://github.com/python/cpython Commit: 150cd1916a59e750ce88c65325de9ef0c42c6cb5 https://github.com/python/cpython/commit/150cd1916a59e750ce88c65325de9ef0c42... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-07 (Fri, 07 Apr 2017) Changed paths: M Lib/tarfile.py M Lib/test/test_tarfile.py M Lib/test/test_zipfile.py M Lib/zipfile.py Log Message: ----------- bpo-29958: Minor improvements to zipfile and tarfile CLI. (#944) Commit: dd9a0a14c89d57e43898d4b866b8c161e4ff8506 https://github.com/python/cpython/commit/dd9a0a14c89d57e43898d4b866b8c161e4f... Author: Barry Warsaw <barry@python.org> Date: 2017-04-07 (Fri, 07 Apr 2017) Changed paths: M Doc/library/asyncio-protocol.rst Log Message: ----------- Fix a minor typo. (#1032) Commit: 205e00c5cfd495a4dc6dae8e8fa0fb828fb3dca9 https://github.com/python/cpython/commit/205e00c5cfd495a4dc6dae8e8fa0fb828fb... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-08 (Sat, 08 Apr 2017) Changed paths: M Lib/test/test_descr.py M Misc/NEWS M Objects/clinic/typeobject.c.h M Objects/typeobject.c Log Message: ----------- bpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843) object.__reduce__() no longer takes arguments, object.__reduce_ex__() now requires one argument. Commit: b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8 https://github.com/python/cpython/commit/b879fe82e7e5c3f7673c9a7fa4aad42bd05... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-08 (Sat, 08 Apr 2017) Changed paths: M Modules/_ctypes/_ctypes.c M Modules/_elementtree.c M Modules/_testbuffer.c M Modules/arraymodule.c M Modules/mmapmodule.c M Objects/bytearrayobject.c M Objects/bytesobject.c M Objects/listobject.c M Objects/memoryobject.c M Objects/tupleobject.c M Objects/unicodeobject.c Log Message: ----------- Expand the PySlice_GetIndicesEx macro. (#1023) Commit: b785396ab451b0c9d6ae9ee5a9e56c810209a6cb https://github.com/python/cpython/commit/b785396ab451b0c9d6ae9ee5a9e56c81020... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-08 (Sat, 08 Apr 2017) Changed paths: M Lib/test/test_exceptions.py M Misc/NEWS M Objects/exceptions.c Log Message: ----------- bpo-29998: Pickling and copying ImportError now preserves name and path (#1010) attributes. Commit: 45d22c256bce3afcf57f49032a6b20fdec4f26ad https://github.com/python/cpython/commit/45d22c256bce3afcf57f49032a6b20fdec4... Author: Jelle Zijlstra <jelle.zijlstra@gmail.com> Date: 2017-04-08 (Sat, 08 Apr 2017) Changed paths: M Doc/library/typing.rst Log Message: ----------- Improvements to typing documentation (#967) Documents a few omitted classes and adds NamedTuple methods. Commit: a2a9ddd923a849124bdd1c484f70f02df6fde0e9 https://github.com/python/cpython/commit/a2a9ddd923a849124bdd1c484f70f02df6f... Author: Senthil Kumaran <skumaran@gatech.edu> Date: 2017-04-08 (Sat, 08 Apr 2017) Changed paths: M Lib/urllib/request.py Log Message: ----------- Remove invalid comment in urllib.request. (#1054) Commit: 64c8f705c0121a4b45ca2c3bc7b47b282e9efcd8 https://github.com/python/cpython/commit/64c8f705c0121a4b45ca2c3bc7b47b282e9... Author: Michael Seifert <michaelseifert04@yahoo.de> Date: 2017-04-09 (Sun, 09 Apr 2017) Changed paths: M Lib/test/test_capi.py M Lib/test/test_exceptions.py M Lib/test/test_getargs2.py M Python/getargs.c Log Message: ----------- bpo-29951: Include function name for some error messages in `PyArg_ParseTuple*` (#916) Also changed format specifier for function name from "%s" to "%.200s" and exception messages should start with lowercase letter. Commit: 2abfdf5a81383d3b1ed6b7321903a9a168c373c5 https://github.com/python/cpython/commit/2abfdf5a81383d3b1ed6b7321903a9a168c... Author: Nick Coghlan <ncoghlan@gmail.com> Date: 2017-04-09 (Sun, 09 Apr 2017) Changed paths: M Tools/scripts/patchcheck.py Log Message: ----------- Issue #29798: Handle git worktree in patchcheck (#1058) The original attempted fix missed an `isdir()` call in `get_base_branch()`. Commit: 0e6cb2ea624570ed08c354f1ed1f595dab4192d6 https://github.com/python/cpython/commit/0e6cb2ea624570ed08c354f1ed1f595dab4... Author: Aviv Palivoda <palaviv@gmail.com> Date: 2017-04-09 (Sun, 09 Apr 2017) Changed paths: M Lib/sqlite3/test/hooks.py M Misc/NEWS Log Message: ----------- bpo-26187: Test that set_trace_callback() is not called multiple times (GH-461) conn.set_trace_callback() shouldn't be called multiple times when the schema is changing. This has indirectly been fixed by using sqlite3_prepare_v2() in bpo-9303. Commit: 19e04942562a980ad2519f6ff79c455a7472783b https://github.com/python/cpython/commit/19e04942562a980ad2519f6ff79c455a747... Author: Sanyam Khurana <CuriousLearner@users.noreply.github.com> Date: 2017-04-09 (Sun, 09 Apr 2017) Changed paths: M Doc/library/copy.rst M Misc/ACKS Log Message: ----------- bpo-29506: Clarify deep copy note in copy module The reference to administrative data was confusing to readers, so this simplifies the note to explain that deep copying may copy more then you intended, such as data that you expected to be shared between copies. Commit: 6dfcc81f6b1c82a71a1c876e14424fb8b3573447 https://github.com/python/cpython/commit/6dfcc81f6b1c82a71a1c876e14424fb8b35... Author: Senthil Kumaran <skumaran@gatech.edu> Date: 2017-04-09 (Sun, 09 Apr 2017) Changed paths: M Lib/urllib/request.py Log Message: ----------- Remove OSError related comment in urllib.request. (#1070) Commit: 6fab78e9027f9ebd6414995580781b480433e595 https://github.com/python/cpython/commit/6fab78e9027f9ebd6414995580781b48043... Author: Senthil Kumaran <skumaran@gatech.edu> Date: 2017-04-10 (Mon, 10 Apr 2017) Changed paths: M Lib/urllib/error.py Log Message: ----------- Remove superfluous comment in urllib.error. (#1076) Commit: 00c75e9a45ff0366c185e9e8a2e23af5a35481b0 https://github.com/python/cpython/commit/00c75e9a45ff0366c185e9e8a2e23af5a35... Author: svelankar <siddharth.velankar@gmail.com> Date: 2017-04-11 (Tue, 11 Apr 2017) Changed paths: M Lib/contextlib.py M Lib/test/test_contextlib.py M Misc/NEWS Log Message: ----------- bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError (GH-949) contextlib._GeneratorContextManager.__exit__ includes a special case to deal with PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context manager body. Previously this check was too permissive, and undid one level of chaining on *all* RuntimeError instances, not just those that wrapped a StopIteration instance. Commit: e8a6bb4f3936123f3eca0b6cea05e2875a2722bc https://github.com/python/cpython/commit/e8a6bb4f3936123f3eca0b6cea05e2875a2... Author: Nick Coghlan <ncoghlan@gmail.com> Date: 2017-04-11 (Tue, 11 Apr 2017) Changed paths: M Misc/ACKS Log Message: ----------- bpo-29692: Add missing ACKS entry (#1079) Commit: f50354adaaafebe95ad09d09b825804a686ea843 https://github.com/python/cpython/commit/f50354adaaafebe95ad09d09b825804a686... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-11 (Tue, 11 Apr 2017) Changed paths: M Lib/tempfile.py M Lib/test/test_tempfile.py Log Message: ----------- Reimplement tempfile._RandomNameSequence using a generator function. (#1075) Commit: c7cc14a825ec156c76329f65bed0d0bd6e03d035 https://github.com/python/cpython/commit/c7cc14a825ec156c76329f65bed0d0bd6e0... Author: Alex Gaynor <alex.gaynor@gmail.com> Date: 2017-04-11 (Tue, 11 Apr 2017) Changed paths: M Lib/tarfile.py Log Message: ----------- Remove two legacy constants which hopefully have no consumers (#1087) The data contained in them is nonsensical Commit: 3e0f1fc4e0ffcfcc706015fa3d67c262948ef171 https://github.com/python/cpython/commit/3e0f1fc4e0ffcfcc706015fa3d67c262948... Author: NAKAMURA Osamu <osamu0329nakamura@users.noreply.github.com> Date: 2017-04-12 (Wed, 12 Apr 2017) Changed paths: M Doc/library/select.rst Log Message: ----------- bpo-30047: Fix a typo in Doc/library/select.rst (#1086) Commit: 4c0d9ea995da595e90e08813b89510de59907802 https://github.com/python/cpython/commit/4c0d9ea995da595e90e08813b89510de599... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-12 (Wed, 12 Apr 2017) Changed paths: M Lib/test/test_zipfile.py M Lib/zipfile.py M Misc/NEWS Log Message: ----------- bpo-30017: Allowed calling the close() method of the zip entry writer object (#1041) multiple times. Writing to closed zip entry writer object now always produce a ValueError. Commit: a6902e662c18dc837d40664eaafe50a44aae6366 https://github.com/python/cpython/commit/a6902e662c18dc837d40664eaafe50a44aa... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Doc/library/inspect.rst M Lib/inspect.py M Misc/NEWS Log Message: ----------- bpo-26985: Add missing info of code object in inspect documentation (GH-1090) Commit: 2c134c31252612ed4729fd05df6ab0e96de8d0b1 https://github.com/python/cpython/commit/2c134c31252612ed4729fd05df6ab0e96de... Author: Benjamin Peterson <benjamin@python.org> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Modules/_testcapimodule.c Log Message: ----------- convert from long long to PyLong loselessly (#1106) Commit: 2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0 https://github.com/python/cpython/commit/2c0b5c664ba7d36dc09788d3778d5b33e3f... Author: Marco Buttu <marco.buttu@gmail.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Doc/library/decimal.rst Log Message: ----------- bpo-30055: add testcleanup to leave a fresh context (#1094) Commit: 61b9ac93712df8092a25223cd56fa6528359792b https://github.com/python/cpython/commit/61b9ac93712df8092a25223cd56fa652835... Author: Berker Peksag <berker.peksag@gmail.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Doc/library/functions.rst Log Message: ----------- bpo-29791: Clarify that flush is keyword-only argument (#1093) Reported by Lucio Ricardo Montero Valenzuela. Commit: d1dc65dc820649e59633142a88eaf97f930963a9 https://github.com/python/cpython/commit/d1dc65dc820649e59633142a88eaf97f930... Author: Berker Peksag <berker.peksag@gmail.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M .mention-bot Log Message: ----------- Blacklist myself from mention-bot (#1114) Commit: 7b2491a6aa5cdc1f8f9e3fd9df91f29ee69aa982 https://github.com/python/cpython/commit/7b2491a6aa5cdc1f8f9e3fd9df91f29ee69... Author: Marco Buttu <marco.buttu@gmail.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Doc/library/pathlib.rst M Doc/library/ssl.rst M Doc/library/turtle.rst M Doc/library/weakref.rst Log Message: ----------- bpo-27200: Fix pathlib, ssl, turtle and weakref doctests (GH-616) Commit: 8fc7bc2b7631ee819ee614e47b6f44bacebe1574 https://github.com/python/cpython/commit/8fc7bc2b7631ee819ee614e47b6f44baceb... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Doc/library/re.rst M Doc/tools/susp-ignored.csv Log Message: ----------- bpo-30021: Add examples for re.escape(). (#1048) And fix the parameter name. Commit: 873ef20d0007b4b120933473e6252d2309a70102 https://github.com/python/cpython/commit/873ef20d0007b4b120933473e6252d2309a... Author: Joshua Diaddigo <joshuad95@hotmail.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Doc/library/functions.rst Log Message: ----------- Fix a typo in Doc/library/functions.rst (GH-1117) Replace `For object's ... ` with `For objects ...` Commit: a6e395dffadf8c5124903c01ad69fefa36b1a935 https://github.com/python/cpython/commit/a6e395dffadf8c5124903c01ad69fefa36b... Author: Nevada Sanchez <me@nevadasanchez.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Lib/lib2to3/pgen2/tokenize.py M Lib/lib2to3/tests/data/py3_test_grammar.py Log Message: ----------- bpo-29869: Allow underscores in numeric literals in lib2to3. (GH-1119) * Allow underscores in numeric literals in lib2to3. * Stricter literal parsing for Python 3.6 in lib2to3.pgen2.tokenize. * Add test case for underscores in literals in Python 3. Commit: 5908300e4b0891fc5ab8bd24fba8fac72012eaa7 https://github.com/python/cpython/commit/5908300e4b0891fc5ab8bd24fba8fac7201... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Doc/library/re.rst M Doc/tools/susp-ignored.csv M Lib/idlelib/idle_test/test_replace.py M Lib/re.py M Lib/test/test_re.py M Misc/NEWS Log Message: ----------- bpo-29995: re.escape() now escapes only special characters. (#1007) Commit: 22a594a0047d7706537ff2ac676cdc0f1dcb329c https://github.com/python/cpython/commit/22a594a0047d7706537ff2ac676cdc0f1dc... Author: Armin Rigo <armin.rigo@gmail.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Lib/pathlib.py M Lib/test/test_pathlib.py M Misc/NEWS Log Message: ----------- bpo-29694: race condition in pathlib mkdir with flags parents=True (GH-1089) Commit: 947629916a5ecb1f6f6792e9b9234e084c5bf274 https://github.com/python/cpython/commit/947629916a5ecb1f6f6792e9b9234e084c5... Author: Mariatta <Mariatta@users.noreply.github.com> Date: 2017-04-13 (Thu, 13 Apr 2017) Changed paths: M Misc/ACKS Log Message: ----------- bpo-29869: Add Nevada Sanchez to Misc/ACKS (GH-1125) Commit: f9f87f0934ca570293ba7194bed3448a7f9bf39c https://github.com/python/cpython/commit/f9f87f0934ca570293ba7194bed3448a7f9... Author: Ryan Gonzalez <kirbyfan64@users.noreply.github.com> Date: 2017-04-14 (Fri, 14 Apr 2017) Changed paths: M Doc/distutils/sourcedist.rst M Doc/whatsnew/3.7.rst M Lib/distutils/command/sdist.py M Misc/NEWS Log Message: ----------- bpo-11913: Add README.rst to the distutils standard READMEs list (#563) Commit: 685cdb9acc3fca04a9897d88b89771ddfd50e772 https://github.com/python/cpython/commit/685cdb9acc3fca04a9897d88b89771ddfd5... Author: Antoine Pitrou <pitrou@free.fr> Date: 2017-04-14 (Fri, 14 Apr 2017) Changed paths: M Lib/test/_test_multiprocessing.py Log Message: ----------- Relax test timing (bpo-29861) to avoid sporadic failures (#1120) Commit: ce040f6c1ef4d31bad8a3ce51a766a0f82c7d2a0 https://github.com/python/cpython/commit/ce040f6c1ef4d31bad8a3ce51a766a0f82c... Author: Jack McCracken <jack.mccracken@shopify.com> Date: 2017-04-14 (Fri, 14 Apr 2017) Changed paths: M Lib/_osx_support.py Log Message: ----------- Fix misplaced positional argument in OS X support library (#1134) Commit: e4f961be0946639eb4356e274268dd9b5e90da9b https://github.com/python/cpython/commit/e4f961be0946639eb4356e274268dd9b5e9... Author: Benjamin Peterson <benjamin@python.org> Date: 2017-04-14 (Fri, 14 Apr 2017) Changed paths: M aclocal.m4 M configure M configure.ac Log Message: ----------- improve alignment autoconf test (#1129) Replace the deprecated AC_TRY_RUN with AC_RUN_IFELSE. Also, standardize the variable name and allow for caching of the result. Commit: 0dc5c3169dcd4853612d11ed8c92b12fa210c07f https://github.com/python/cpython/commit/0dc5c3169dcd4853612d11ed8c92b12fa21... Author: Michael Seifert <michaelseifert04@yahoo.de> Date: 2017-04-14 (Fri, 14 Apr 2017) Changed paths: M Doc/c-api/slice.rst Log Message: ----------- bpo-30059: Include Py_Ellipsis in C API documentation (#1018) Commit: 2849cc34a8db93d448a62d69c462402347b50dcb https://github.com/python/cpython/commit/2849cc34a8db93d448a62d69c462402347b... Author: Olivier Vielpeau <olivielpeau@users.noreply.github.com> Date: 2017-04-14 (Fri, 14 Apr 2017) Changed paths: M Modules/_ssl.c Log Message: ----------- bpo-29738: Fix memory leak in _get_crl_dp (GH-526) * Remove conditional on free of `dps`, since `dps` is now allocated for all versions of OpenSSL * Remove call to `x509_check_ca` since it was only used to cache the `crldp` field of the certificate CRL_DIST_POINTS_free is available in all supported versions of OpenSSL (recent 0.9.8+) and LibreSSL. Commit: 39f5956ffbcc4fe83cee59eed1d18845a5b25dd2 https://github.com/python/cpython/commit/39f5956ffbcc4fe83cee59eed1d18845a5b... Author: Mariatta <Mariatta@users.noreply.github.com> Date: 2017-04-14 (Fri, 14 Apr 2017) Changed paths: M Misc/ACKS Log Message: ----------- bpo-29738: Add Olivier Vielpeau to Misc/ACKS (GH-1146) Commit: eaeda64c2fd2abd33e59b03298f9cdc9e8efef89 https://github.com/python/cpython/commit/eaeda64c2fd2abd33e59b03298f9cdc9e8e... Author: cocoatomo <cocoatomo77@gmail.com> Date: 2017-04-15 (Sat, 15 Apr 2017) Changed paths: M Doc/c-api/exceptions.rst Log Message: ----------- bpo-19225: Remove duplicated description for standard warning categories (GH-1068) Commit: 026435ce49419a3366171416c68114dd8a1144c7 https://github.com/python/cpython/commit/026435ce49419a3366171416c68114dd8a1... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-04-15 (Sat, 15 Apr 2017) Changed paths: M Lib/test/test_io.py M Misc/NEWS M Modules/_io/iobase.c Log Message: ----------- bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1130) Commit: 813f943c592cf225871b99cffc99304c8cbbee40 https://github.com/python/cpython/commit/813f943c592cf225871b99cffc99304c8cb... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-16 (Sun, 16 Apr 2017) Changed paths: M Objects/abstract.c M Objects/typeobject.c M Python/bltinmodule.c Log Message: ----------- bpo-29838: Add asserts for checking results of sq_length and mq_length slots. (#700) Negative result should be returned only when an error is set. Commit: baf9f29811dba9c06e76b8e220bd77260202f299 https://github.com/python/cpython/commit/baf9f29811dba9c06e76b8e220bd7726020... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-16 (Sun, 16 Apr 2017) Changed paths: M Lib/test/test_builtin.py M Misc/NEWS M Objects/typeobject.c Log Message: ----------- bpo-29839: Raise ValueError rather than OverflowError in len() for negative values. (#701) Commit: cd85d0b90b39310c8ca7329bd35e82c2c1c8f4ad https://github.com/python/cpython/commit/cd85d0b90b39310c8ca7329bd35e82c2c1c... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-16 (Sun, 16 Apr 2017) Changed paths: M Modules/_sre.c Log Message: ----------- bpo-28765: Use concrete types API in _sre.c. (#1009) Commit: fdbd01151dbd5feea3e4c0316d102db3d2a2a412 https://github.com/python/cpython/commit/fdbd01151dbd5feea3e4c0316d102db3d2a... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-16 (Sun, 16 Apr 2017) Changed paths: M Doc/library/re.rst M Lib/test/test_re.py M Misc/NEWS M Modules/_sre.c M Modules/clinic/_sre.c.h Log Message: ----------- bpo-10076: Compiled regular expression and match objects now are copyable. (#1000) Commit: 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0 https://github.com/python/cpython/commit/55fe1ae9708d81b902b6fe8f6590e2a24b1... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-16 (Sun, 16 Apr 2017) Changed paths: M Include/ceval.h M Lib/idlelib/run.py M Lib/importlib/_bootstrap_external.py M Lib/importlib/abc.py M Lib/mimetypes.py M Lib/pstats.py M Lib/site.py M Lib/test/support/__init__.py M Lib/unittest/test/test_assertions.py M Lib/urllib/error.py M Modules/_bz2module.c M Modules/_dbmmodule.c M Modules/_gdbmmodule.c M Modules/_io/_iomodule.c M Modules/_io/_iomodule.h M Modules/_io/bufferedio.c M Modules/_io/clinic/_iomodule.c.h M Modules/_io/fileio.c M Modules/_io/iobase.c M Modules/_io/stringio.c M Modules/_io/textio.c M Modules/_multiprocessing/multiprocessing.c M Modules/_multiprocessing/semaphore.c M Modules/_ssl.c M Modules/_winapi.c M Modules/fcntlmodule.c M Modules/main.c M Modules/ossaudiodev.c M Modules/readline.c M Modules/selectmodule.c M Modules/signalmodule.c M Modules/zipimport.c M Objects/object.c M PC/clinic/msvcrtmodule.c.h M PC/msvcrtmodule.c M Python/importlib_external.h Log Message: ----------- bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051) Commit: 8e1ddbd592c3aaf02a58789771f891c0101c6e05 https://github.com/python/cpython/commit/8e1ddbd592c3aaf02a58789771f891c0101... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-04-17 (Mon, 17 Apr 2017) Changed paths: M Objects/typeobject.c Log Message: ----------- fix a refleak in slot_sq_length (#1162) Commit: d6d344d8330a5975fc102e8f275d47044294f1d1 https://github.com/python/cpython/commit/d6d344d8330a5975fc102e8f275d4704429... Author: Eric Appelt <eric.appelt@gmail.com> Date: 2017-04-17 (Mon, 17 Apr 2017) Changed paths: M Lib/test/test_importlib/test_util.py Log Message: ----------- bpo-29514: Check magic number for bugfix release (#54) * bpo-29514: Check magic number for micro release Add a dict importlib.util.EXPECTED_MAGIC_NUMBERS which details the initial and expected pyc magic number for each minor release. This gives a mechanism for users to check if the magic number has changed within a release and for a test to ensure procedure is followed if a change is necessary. Add a test to check the current MAGIC_NUMBER against the expected number for the release if the current release is at candidate or final level. On test failure, describe to the developer the procedure for changing the magic number. * Simplify magic number release test Simplify the magic number release test by removing EXPECTED_MAGIC_NUMBERS table and making the expected magic number self-contained within the test. BPO: 29514 * Improve magic number test execution and message Improve the execution of the magic number test by using skipUnless for alpha and beta releases, and directly inheriting from unittest.TestCase rather than using the machinery for the other tests. Also improve the error message to explain the reason for caution in changing the magic number. BPO: 29514 Commit: 992ae6444cc745c23d3bcc604983cc8e39405bd2 https://github.com/python/cpython/commit/992ae6444cc745c23d3bcc604983cc8e394... Author: cocoatomo <cocoatomo77@gmail.com> Date: 2017-04-18 (Tue, 18 Apr 2017) Changed paths: M Doc/license.rst M Lib/test/exception_hierarchy.txt Log Message: ----------- Fix minor typos (GH-1173) Commit: 8312fba0a1ef8f0a1a6c1760c73a89e29cfca09a https://github.com/python/cpython/commit/8312fba0a1ef8f0a1a6c1760c73a89e29cf... Author: Mariatta <Mariatta@users.noreply.github.com> Date: 2017-04-18 (Tue, 18 Apr 2017) Changed paths: M Doc/license.rst Log Message: ----------- Minor grammar fixes (GH-1174) Commit: c209b70d610da50a844a3c10f37d6183bade3446 https://github.com/python/cpython/commit/c209b70d610da50a844a3c10f37d6183bad... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-19 (Wed, 19 Apr 2017) Changed paths: M Lib/test/test_uuid.py Log Message: ----------- bpo-29925: Skip test_uuid1_safe() on OS X Tiger (#971) Commit: bf623ae8843dc30b28c574bec8d29fc14be59d86 https://github.com/python/cpython/commit/bf623ae8843dc30b28c574bec8d29fc14be... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-19 (Wed, 19 Apr 2017) Changed paths: M Lib/test/test_io.py M Misc/NEWS M Modules/_ctypes/_ctypes.c M Modules/_elementtree.c M Modules/_io/iobase.c M Modules/_winapi.c M Modules/cjkcodecs/multibytecodec.c M Modules/itertoolsmodule.c M Modules/posixmodule.c M Modules/selectmodule.c M Objects/exceptions.c M Objects/namespaceobject.c M Objects/setobject.c M Python/bltinmodule.c Log Message: ----------- bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) raised an error. Replace them with using concrete types API that never fails if appropriate. Commit: d90045f319e2ea9772b9fbd62a05fdf34af96b6c https://github.com/python/cpython/commit/d90045f319e2ea9772b9fbd62a05fdf34af... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-19 (Wed, 19 Apr 2017) Changed paths: M Lib/dis.py M Lib/test/test_dis.py M Misc/NEWS Log Message: ----------- bpo-22352: Adjust widths in the output of dis.dis() for large line numbers and (#1153) instruction offsets. Add tests for widths of opcode names. Commit: a79f4c219531c05fc8f670c1e4bbf12c081935d3 https://github.com/python/cpython/commit/a79f4c219531c05fc8f670c1e4bbf12c081... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-19 (Wed, 19 Apr 2017) Changed paths: M Lib/test/test_parser.py M Misc/NEWS M Modules/parsermodule.c Log Message: ----------- bpo-30070: Fixed leaks and crashes in errors handling in the parser module. (#1131) Commit: 66bffd1663489d080349debbf1b472d432351038 https://github.com/python/cpython/commit/66bffd1663489d080349debbf1b472d4323... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-19 (Wed, 19 Apr 2017) Changed paths: M Lib/multiprocessing/util.py M Lib/subprocess.py M Lib/test/test_capi.py M Lib/test/test_subprocess.py M Modules/_posixsubprocess.c Log Message: ----------- bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (#1110) Commit: 1e62bf145b4865d03a29a5720a4eb84c321a9829 https://github.com/python/cpython/commit/1e62bf145b4865d03a29a5720a4eb84c321... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-19 (Wed, 19 Apr 2017) Changed paths: M Lib/tempfile.py M Lib/test/test_tempfile.py Log Message: ----------- bpo-30030: Revert f50354ad (tempfile) (#1187) Revert f50354adaaafebe95ad09d09b825804a686ea843: it introduced a regression in test_threadedtempfile. Commit: 7b9619ae249ed637924d1c76687b411061753e5a https://github.com/python/cpython/commit/7b9619ae249ed637924d1c76687b4110617... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-19 (Wed, 19 Apr 2017) Changed paths: M Lib/test/test_asyncore.py Log Message: ----------- Fix/optimize test_asyncore.test_quick_connect() (#1188) Don't use addCleanup() in test_quick_connect() because it keeps the Thread object alive and so @reap_threads fails on its timeout of 1 second. "./python -m test -v test_asyncore -m test_quick_connect" now takes 185 ms, instead of 11 seconds. Other minor changes: * Use "with sock:" to close the socket instead of try/finally: sock.close() * Use self.skipTest() in test_quick_connect() to remove one indentation level and notice user that the test is specific to AF_INET and AF_INET6 Commit: ec4b17239d899550be4ee6104b61751bb3c70382 https://github.com/python/cpython/commit/ec4b17239d899550be4ee6104b61751bb3c... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Lib/test/libregrtest/save_env.py Log Message: ----------- regrtest: always show before/after of modified env (#1192) Buildbots don't run tests with -vv and so only log "xxx was modified by test_xxx" which is not enough to debug such random issue. In many cases, I'm unable to reproduce the warning and so unable to fix it. Always logging the value before and value after should help to debug such warning on buildbots. Commit: d13d54748d3a7db023d9db37223ea7d40bb8f8e3 https://github.com/python/cpython/commit/d13d54748d3a7db023d9db37223ea7d40bb... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Lib/test/test_normalization.py Log Message: ----------- bpo-29887: test_normalization handles PermissionError (#1196) Skip test_normalization.test_main() if download raises a permission error. Commit: 11470b6dcdbc170779499a4a040b93c842a0d194 https://github.com/python/cpython/commit/11470b6dcdbc170779499a4a040b93c842a... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Lib/test/test_asyncore.py Log Message: ----------- bpo-30106: Fix tearDown() of test_asyncore (#1194) Call asyncore.close_all() with ignore_all=True in the tearDown() method of the test_asyncore base test case. It should prevent keeping alive sockets in asyncore.socket_map if close() fails with an unexpected error. Revert also an unwanted change of my previous commit: remove name parameter of Thread in test_quick_connect(). Commit: f7e62cf8adfb8ab6a6a870903defe8ff218a0383 https://github.com/python/cpython/commit/f7e62cf8adfb8ab6a6a870903defe8ff218... Author: Louie Lu <me@louie.lu> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Lib/unittest/main.py Log Message: ----------- bpo-30078: Add an example of passing a path to unittest (#1178) Commit: 8526fb74edf5ac9ca175b7cdcb0d82bb8780d2cf https://github.com/python/cpython/commit/8526fb74edf5ac9ca175b7cdcb0d82bb878... Author: Berker Peksag <berker.peksag@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Doc/howto/argparse.rst Log Message: ----------- Remove redundant comma in argparse HOWTO (#1141) Reported by Sean Canavan on docs@p.o. Commit: 6dbdedb0b18a5ca850ab8ce512fda24d5a9d0688 https://github.com/python/cpython/commit/6dbdedb0b18a5ca850ab8ce512fda24d5a9... Author: Berker Peksag <berker.peksag@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Doc/library/locale.rst Log Message: ----------- bpo-10379: Add %char examples to locale.format() docs (GH-1145) Commit: 58f3c9dc8f5626abe09ac9738c34f6ba99ce2972 https://github.com/python/cpython/commit/58f3c9dc8f5626abe09ac9738c34f6ba99c... Author: Mariatta <Mariatta@users.noreply.github.com> Date: 2017-04-19 (Wed, 19 Apr 2017) Changed paths: M Lib/test/test_tools/test_reindent.py M Tools/scripts/reindent.py Log Message: ----------- bpo-30109: Fix reindent.py (GH-1207) Skip the file if it has bad encoding. Commit: b4dc6af7a7862a8996cffed30d39d6add5ee58a3 https://github.com/python/cpython/commit/b4dc6af7a7862a8996cffed30d39d6add5e... Author: Dong-hee Na <donghee.na92@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Lib/test/test_sys.py M Misc/ACKS M Misc/NEWS M Objects/codeobject.c Log Message: ----------- bpo-12414: Update code_sizeof() to take in account co_extra memory. (#1168) Commit: b85c136903c6d2368162f7c4a58f258c9c69ead0 https://github.com/python/cpython/commit/b85c136903c6d2368162f7c4a58f258c9c6... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Lib/test/test_site.py Log Message: ----------- bpo-30108: Restore sys.path in test_site (#1197) Add setUpModule() and tearDownModule() functions to test_site to save/restore sys.path at the module level to prevent warning if the user site directory is created, since site.addsitedir() modifies sys.path. Commit: d20324a7fab6734bae19b1f070b5c8aae5ff3612 https://github.com/python/cpython/commit/d20324a7fab6734bae19b1f070b5c8aae5f... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Lib/test/support/__init__.py M Lib/test/test_urllib2_localnet.py Log Message: ----------- support.threading_cleanup() log a warning on fail (#1195) The @reap_threads decorator and the threading_cleanup() function of test.support now log a warning if they fail to clenaup threads. Fix also the usage of support.threading_cleanup() in test_urllib2_localnet. The log may help to debug such other warning seen on the AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot: Warning -- threading._dangling was modified by test_logging Commit: 8f5cdfa9fc1bb6b4d9a33fc281987252f6398430 https://github.com/python/cpython/commit/8f5cdfa9fc1bb6b4d9a33fc281987252f63... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Modules/timemodule.c Log Message: ----------- Only define get_zone() and get_gmtoff() if needed (#1193) Only define the get_zone() and get_gmtoff() private functions in the time module if these functions are needed to initialize the module. The change fixes the following warnings on AIX: Modules/timemodule.c:1175:1: warning: 'get_gmtoff' defined but not used [-Wunused-function] Modules/timemodule.c:1164:1: warning: 'get_zone' defined but not used [-Wunused-function] Commit: 40db90c1ce1a59d5f5f2894bb0ce32110000bf27 https://github.com/python/cpython/commit/40db90c1ce1a59d5f5f2894bb0ce3211000... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Lib/test/test_struct.py M Misc/NEWS M Modules/_struct.c M Objects/unicodeobject.c Log Message: ----------- bpo-29802: Fix reference counting in module-level struct functions (#1213) when pass arguments of wrong type. Commit: 8e675286a92f33837cfffac5914b5175dac5d573 https://github.com/python/cpython/commit/8e675286a92f33837cfffac5914b5175dac... Author: Segev Finer <segev208@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M .gitignore Log Message: ----------- Add missing .gitignore entries for VS2015 IntelliSense DB (#1223) Commit: f60c9e54f501065f3be2a4cfb4c387dfa2f243a9 https://github.com/python/cpython/commit/f60c9e54f501065f3be2a4cfb4c387dfa2f... Author: Segev Finer <segev208@gmail.com> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M PCbuild/pcbuild.sln Log Message: ----------- bpo-29191: Add liblzma.vcxproj to pcbuild.sln and other missing entries (#1222) liblzma is missing from pcbuild.sln. This causes the build of _lzma to fail when building the solution and not using build.bat. Commit: 791dc831198f3ecc1531f8e6f05debf4ce234d00 https://github.com/python/cpython/commit/791dc831198f3ecc1531f8e6f05debf4ce2... Author: Benjamin Peterson <benjamin@python.org> Date: 2017-04-20 (Thu, 20 Apr 2017) Changed paths: M Include/pyport.h M Modules/_sre.c M configure M configure.ac M pyconfig.h.in Log Message: ----------- remove configure test for inline keyword (#1231) We require C99, so a configure test for this standard feature is not needed. Commit: 28205b203a4742c40080b4a2b4b2dcd800716edc https://github.com/python/cpython/commit/28205b203a4742c40080b4a2b4b2dcd8007... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-21 (Fri, 21 Apr 2017) Changed paths: M configure M configure.ac Log Message: ----------- bpo-30104: Use -fno-strict-aliasing on clang (#1221) Python/dtoa.c is not compiled correctly with clang 4.0 and optimization level -O2 or higher, because of an aliasing issue on the double/ULong[2] union. LLVM bug report: https://bugs.llvm.org//show_bug.cgi?id=31928 Commit: 35f3d240ee5f0958034bd500949b08764e36f4dc https://github.com/python/cpython/commit/35f3d240ee5f0958034bd500949b08764e3... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-21 (Fri, 21 Apr 2017) Changed paths: M configure M configure.ac Log Message: ----------- bpo-30104: configure now detects when cc is clang (#1233) Detect when the "cc" compiler (and the $CC variable) is the Clang compiler. The test is needed to add the -fno-strict-aliasing option on FreeBSD where cc is clang. Commit: a2c877c3985aba4adb19755e21f477e1c639cfd9 https://github.com/python/cpython/commit/a2c877c3985aba4adb19755e21f477e1c63... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-21 (Fri, 21 Apr 2017) Changed paths: M Lib/test/test_asyncore.py Log Message: ----------- bpo-30106: Fix test_asyncore.test_quick_connect() (#1234) test_quick_connect() runs a thread up to 50 seconds, whereas the socket is connected in 0.2 second and then the thread is expected to end in less than 3 second. On Linux, the thread ends quickly because select() seems to always return quickly. On FreeBSD, sometimes select() fails with timeout and so the thread runs much longer than expected. Fix the thread timeout to fix a race condition in the test. Commit: 2a1aed04b0943636f605543522e16cca1dc23e70 https://github.com/python/cpython/commit/2a1aed04b0943636f605543522e16cca1dc... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-21 (Fri, 21 Apr 2017) Changed paths: M Lib/test/test_io.py Log Message: ----------- bpo-30107: don't dump core on expected test_io crash (#1235) test_io has two unit tests which trigger a deadlock: * test_daemon_threads_shutdown_stdout_deadlock() * test_daemon_threads_shutdown_stderr_deadlock() These tests call Py_FatalError() if the expected bug is triggered which calls abort(). Use test.support.SuppressCrashReport to prevent the creation on a core dump, to fix the warning: Warning -- files was modified by test_io Before: [] After: ['python.core'] Commit: 46c2b81026bbf966c0898a1fa30d98c33673aea0 https://github.com/python/cpython/commit/46c2b81026bbf966c0898a1fa30d98c3367... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-21 (Fri, 21 Apr 2017) Changed paths: M Lib/test/test_faulthandler.py M Modules/faulthandler.c Log Message: ----------- bpo-30125: Fix faulthandler.disable() on Windows (#1240) * bpo-30125: Cleanup faulthandler.c * Use size_t type for iterators * Add { ... } * bpo-30125: Fix faulthandler.disable() on Windows On Windows, faulthandler.disable() now removes the exception handler installed by faulthandler.enable(). Commit: d1ae24e8880fe00d006eb2996af815c35fbcfb33 https://github.com/python/cpython/commit/d1ae24e8880fe00d006eb2996af815c35fb... Author: Sebastian Vetter <seb@roadsi.de> Date: 2017-04-21 (Fri, 21 Apr 2017) Changed paths: M Doc/using/unix.rst Log Message: ----------- Correct the README link in Unix install docs (#1245) Commit: ae5b3260dd459845aad8a30491b76d471577785d https://github.com/python/cpython/commit/ae5b3260dd459845aad8a30491b76d47157... Author: Charles Renwick <crenwick@users.noreply.github.com> Date: 2017-04-21 (Fri, 21 Apr 2017) Changed paths: M Lib/asyncio/tasks.py Log Message: ----------- bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future (GH-1170) Commit: a36e939aeb3b5a2c56561eb24f0e339eee9f3f9d https://github.com/python/cpython/commit/a36e939aeb3b5a2c56561eb24f0e339eee9... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-22 (Sat, 22 Apr 2017) Changed paths: M Lib/ctypes/test/test_win32.py M Lib/test/support/__init__.py Log Message: ----------- bpo-30125: disable faulthandler in ctypes test_SEH (#1237) Disable faulthandler to run test_SEH() of test_ctypes to prevent the following log with a traceback: Windows fatal exception: access violation Add support.disable_faulthandler() context manager. Commit: 1a5856bf9295fa73995898d576e0bedf016aee1f https://github.com/python/cpython/commit/1a5856bf9295fa73995898d576e0bedf016... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-22 (Sat, 22 Apr 2017) Changed paths: M Include/listobject.h M Include/setobject.h M Include/tupleobject.h M Objects/odictobject.c Log Message: ----------- bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and PySet_GET_SIZE. (#751) Commit: 9616a82e7802241a4b74cf7ae38d43c37bf66e48 https://github.com/python/cpython/commit/9616a82e7802241a4b74cf7ae38d43c37bf... Author: bladebryan <bryan.olson@acm.org> Date: 2017-04-22 (Sat, 22 Apr 2017) Changed paths: M Lib/test/test_random.py M Misc/ACKS M Misc/NEWS M Modules/_randommodule.c Log Message: ----------- bpo-29960 _random.Random corrupted on exception in setstate(). (#1019) Commit: 7bfd740e3d484e6fdf3f5c2d4640450957f9d89c https://github.com/python/cpython/commit/7bfd740e3d484e6fdf3f5c2d4640450957f... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-22 (Sat, 22 Apr 2017) Changed paths: M Misc/NEWS Log Message: ----------- Remove unneeded Misc/NEWS entry for bpo-29802. (#1251) The bug was added in still not released version. Commit: 7fae81e1672d0b4110d31ea6a765b54f63a2e54b https://github.com/python/cpython/commit/7fae81e1672d0b4110d31ea6a765b54f63a... Author: Louie Lu <me@louie.lu> Date: 2017-04-22 (Sat, 22 Apr 2017) Changed paths: M Doc/library/test.rst Log Message: ----------- Fix trailing colon and newline in test.rst (#1250) Commit: 997a4adea606069e01beac6269920709db3994d1 https://github.com/python/cpython/commit/997a4adea606069e01beac6269920709db3... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-22 (Sat, 22 Apr 2017) Changed paths: M Doc/reference/expressions.rst Log Message: ----------- Remove outdated note about constraining of the bit shift right operand. (#1258) The constrain was removed in bpo-29816. Commit: 85157cd89a6edac347a5b6871fcf20c500c6fbbf https://github.com/python/cpython/commit/85157cd89a6edac347a5b6871fcf20c500c... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-23 (Sun, 23 Apr 2017) Changed paths: M Doc/reference/datamodel.rst Log Message: ----------- bpo-15718: Document the upper bound constrain on the __len__ return value. (#1256) Commit: 26896f2832324dde85cdd63d525571ca669f6f0b https://github.com/python/cpython/commit/26896f2832324dde85cdd63d525571ca669... Author: csabella <chekat2@gmail.com> Date: 2017-04-23 (Sun, 23 Apr 2017) Changed paths: M Doc/c-api/long.rst Log Message: ----------- bpo-29751: Improve PyLong_FromString documentation (GH-915) Commit: 9eb5ca0774f94215be48442100c829db2484e146 https://github.com/python/cpython/commit/9eb5ca0774f94215be48442100c829db248... Author: Mariatta <Mariatta@users.noreply.github.com> Date: 2017-04-23 (Sun, 23 Apr 2017) Changed paths: M Misc/ACKS Log Message: ----------- bpo-29751: add Cheryl Sabella to Misc/ACKS (GH-1268) Commit: 2e576f5aec1f8f23f07001e2eb3db9276851a4fc https://github.com/python/cpython/commit/2e576f5aec1f8f23f07001e2eb3db927685... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-24 (Mon, 24 Apr 2017) Changed paths: M Doc/library/http.client.rst M Doc/reference/datamodel.rst M Lib/asyncio/base_events.py M Lib/cgi.py M Lib/dbm/dumb.py M Lib/http/client.py M Lib/idlelib/pyparse.py M Lib/lib2to3/fixes/fix_operator.py M Lib/locale.py M Lib/logging/__init__.py M Lib/pathlib.py M Lib/selectors.py M Lib/shelve.py M Lib/test/test_dictviews.py M Lib/test/test_functools.py M Lib/test/test_hash.py M Lib/test/test_pathlib.py M Lib/test/test_statistics.py M Lib/test/test_typing.py M Lib/tracemalloc.py M Lib/weakref.py M Lib/xml/etree/ElementTree.py Log Message: ----------- bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263) Commit: fcfe80ec2592fed8b3941c79056a8737abef7d3b https://github.com/python/cpython/commit/fcfe80ec2592fed8b3941c79056a8737abe... Author: Nate <nate@so8r.es> Date: 2017-04-24 (Mon, 24 Apr 2017) Changed paths: M Lib/inspect.py M Lib/test/test_inspect.py M Misc/NEWS Log Message: ----------- bpo-29822: Make inspect.isabstract() work during __init_subclass__. (#678) At the time when an abstract base class' __init_subclass__ runs, ABCMeta.__new__ has not yet finished running, so in the presence of __init_subclass__, inspect.isabstract() can no longer depend only on TPFLAGS_IS_ABSTRACT. Commit: 4bcfa3a2363c30d406c6826e291b30c33a649d18 https://github.com/python/cpython/commit/4bcfa3a2363c30d406c6826e291b30c33a6... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-25 (Tue, 25 Apr 2017) Changed paths: M Lib/test/test_logging.py Log Message: ----------- bpo-30131: Cleanup threads in test_logging (#1275) * Use @support.reap_threads on unit tests creating threads * Call TestCase.fail() on thread.join(timeout) failure Commit: 0d659e5614cad512a1940125135b443b3eecb5d7 https://github.com/python/cpython/commit/0d659e5614cad512a1940125135b443b3ee... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-25 (Tue, 25 Apr 2017) Changed paths: M Modules/timemodule.c Log Message: ----------- tmtotuple(): use time_t for gmtoff (#1276) timegm() return type is time_t, not int. Use time_t to prevent the following compiler warning on Windows: timemodule.c: warning C4244: '=': conversion from 'time_t' to 'int', possible loss of data Commit: f6448e5d65c349576df6e83b8324b9c208e77615 https://github.com/python/cpython/commit/f6448e5d65c349576df6e83b8324b9c208e... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-25 (Tue, 25 Apr 2017) Changed paths: M Lib/distutils/tests/test_build_ext.py Log Message: ----------- bpo-30132: distutils test_build_ext() uses temp_cwd() (#1278) test_build_ext() of test_distutils now uses support.temp_cwd() to prevent the creation of a pdb file in the current working directory on Windows. Commit: 3e2ad8ec61a322370a6fbdfb2209cf74546f5e08 https://github.com/python/cpython/commit/3e2ad8ec61a322370a6fbdfb2209cf74546... Author: INADA Naoki <methane@users.noreply.github.com> Date: 2017-04-25 (Tue, 25 Apr 2017) Changed paths: M Lib/asyncio/base_events.py M Lib/asyncio/base_subprocess.py M Lib/asyncio/compat.py M Lib/asyncio/events.py M Lib/asyncio/futures.py M Lib/asyncio/proactor_events.py M Lib/asyncio/selector_events.py M Lib/asyncio/sslproto.py M Lib/asyncio/tasks.py M Lib/asyncio/test_utils.py M Lib/asyncio/transports.py M Lib/asyncio/unix_events.py Log Message: ----------- bpo-29617: Remove Python 3.3 support from asyncio (GH-232) Commit: 97bf722fcd1de1236824377e052369dc7686b644 https://github.com/python/cpython/commit/97bf722fcd1de1236824377e052369dc768... Author: csabella <chekat2@gmail.com> Date: 2017-04-25 (Tue, 25 Apr 2017) Changed paths: M Doc/library/collections.rst Log Message: ----------- bpo-28851: Improve namedtuple documentation (GH-1274) Clarify that a sequence of strings is the preferred value for 'field_names'. Commit: 08c16016e2a2d1368d001ddebfe9ca92465773c4 https://github.com/python/cpython/commit/08c16016e2a2d1368d001ddebfe9ca92465... Author: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> Date: 2017-04-25 (Tue, 25 Apr 2017) Changed paths: M Doc/library/types.rst M Lib/test/test_types.py M Lib/types.py M Misc/NEWS Log Message: ----------- bpo:29950: Rename SlotWrapperType to WrapperDescriptorType (GH-926) Commit: d819ad9832292d854e9710493ecdf959b69802e3 https://github.com/python/cpython/commit/d819ad9832292d854e9710493ecdf959b69... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-26 (Wed, 26 Apr 2017) Changed paths: M Lib/test/support/__init__.py Log Message: ----------- bpo-30107: Make SuppressCrashReport quiet on macOS (#1279) On macOS, SuppressCrashReport now redirects /usr/bin/defaults command stderr into a pipe to not pollute stderr. It fixes a test_io.test_daemon_threads_shutdown_stderr_deadlock() failure when the CrashReporter domain doesn't exists. Message logged into stderr: 2017-04-24 16:57:21.432 defaults[41046:2462851] The domain/default pair of (com.apple.CrashReporter, DialogType) does not exist Commit: c6db4811f9ea3aeff0e1fafe1c60a22835ef359e https://github.com/python/cpython/commit/c6db4811f9ea3aeff0e1fafe1c60a22835e... Author: csabella <chekat2@gmail.com> Date: 2017-04-26 (Wed, 26 Apr 2017) Changed paths: M Doc/library/functions.rst M Doc/library/stdtypes.rst M Doc/reference/datamodel.rst Log Message: ----------- bpo-30052: Link `bytes` & `bytearray` to stdtypes not functions (GH-1271) Builtin container types have two potential link targets in the docs: - their entry in the list of builtin callables - their type documentation This change brings `bytes` and `bytearray` into line with other container types by having cross-references default to linking to their type documentation, rather than their builtin callable entry. Commit: 0d637e236d7099f7b724026c8cb7bd83d8e12e6b https://github.com/python/cpython/commit/0d637e236d7099f7b724026c8cb7bd83d8e... Author: Louie Lu <me@louie.lu> Date: 2017-04-26 (Wed, 26 Apr 2017) Changed paths: M Doc/library/ctypes.rst Log Message: ----------- bpo-28698: Fix c_wchar_p doc example (GH-1160) Commit: 87c07fe9d908d0a2143fcc8369255c6ff3241503 https://github.com/python/cpython/commit/87c07fe9d908d0a2143fcc8369255c6ff32... Author: Mathias Rav <mathiasrav@gmail.com> Date: 2017-04-26 (Wed, 26 Apr 2017) Changed paths: M Doc/library/typing.rst Log Message: ----------- bpo-29974: Improve typing.TYPE_CHECKING example (GH-982) * Fix PEP 8 (SomeType instead of some_type) * Add a function parameter annotation * Explain, using wording from PEP 484 and PEP 526, why one annotation is in quotes and another is not. Suggested by Ivan Levkevskyi. Commit: 6e676954de7c4f3f06dd5b56842c9a2c931a1cab https://github.com/python/cpython/commit/6e676954de7c4f3f06dd5b56842c9a2c931... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-26 (Wed, 26 Apr 2017) Changed paths: M Modules/timemodule.c Log Message: ----------- timemodule.c: Cast PyUnicode_AsUTF8() to char* (#1294) bpo-28769 changed PyUnicode_AsUTF8() return type from const char* to char* in Python 3.7, but tm_zone field type of the tm structure is char* on FreeBSD. Cast PyUnicode_AsUTF8() to char* in gettmarg() to fix the warning: Modules/timemodule.c:443:20: warning: assigning to 'char *' from 'const char *' discards qualifiers Commit: 8ca2f2faefa8dba323a2e4c4b86efb633d7a53cf https://github.com/python/cpython/commit/8ca2f2faefa8dba323a2e4c4b86efb633d7... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-26 (Wed, 26 Apr 2017) Changed paths: M Lib/test/test_logging.py Log Message: ----------- bpo-30131: test_logging now joins queue threads (#1298) QueueListenerTest of test_logging now closes the multiprocessing Queue and joins its thread to prevent leaking dangling threads to following tests. Add also @support.reap_threads to detect earlier if a test leaks threads (and try to "cleanup" these threads). Commit: ab7886b78574d9224b26dc3a5b08e5c105fbbf11 https://github.com/python/cpython/commit/ab7886b78574d9224b26dc3a5b08e5c105f... Author: Eijebong <Eijebong@users.noreply.github.com> Date: 2017-04-26 (Wed, 26 Apr 2017) Changed paths: M Doc/library/curses.rst M Misc/ACKS M Misc/NEWS M Modules/_cursesmodule.c Log Message: ----------- bpo-30101: Add support for curses.A_ITALIC. (#1015) Commit: a90b990480f45b6a0ad02d43455cf8b620bac9c5 https://github.com/python/cpython/commit/a90b990480f45b6a0ad02d43455cf8b620b... Author: Dong-hee Na <donghee.na92@gmail.com> Date: 2017-04-26 (Wed, 26 Apr 2017) Changed paths: M Doc/library/2to3.rst Log Message: ----------- bpo-30142: Remove "callable" from the 2to3fixer documentation. (GH-1296) Commit: 88c38b32b761cb566759b8ad96704bff590a1de9 https://github.com/python/cpython/commit/88c38b32b761cb566759b8ad96704bff590... Author: Louie Lu <me@louie.lu> Date: 2017-04-27 (Thu, 27 Apr 2017) Changed paths: M Doc/c-api/bytes.rst M Doc/c-api/unicode.rst Log Message: ----------- bpo-28415: Note 0 conversion different between Python and C (#885) Commit: 6fde770e4e940c19cd62de0b6aeb77840690843e https://github.com/python/cpython/commit/6fde770e4e940c19cd62de0b6aeb7784069... Author: Jesse Gonzalez <jesse.gonzalez.jr@gmail.com> Date: 2017-04-26 (Wed, 26 Apr 2017) Changed paths: M Doc/howto/unicode.rst Log Message: ----------- Use the correct name for ISO in Unicode HOWTO. (#1312) Commit: e65fcde85abf6617508f2d6b77020e24b8ca6f6b https://github.com/python/cpython/commit/e65fcde85abf6617508f2d6b77020e24b8c... Author: Marco Buttu <marco.buttu@gmail.com> Date: 2017-04-27 (Thu, 27 Apr 2017) Changed paths: M Doc/library/email.compat32-message.rst M Doc/library/functions.rst M Doc/library/ipaddress.rst M Doc/library/reprlib.rst M Doc/library/shlex.rst M Doc/library/urllib.parse.rst M Doc/whatsnew/3.2.rst Log Message: ----------- bpo-27200: Fix several doctests (GH-604) Commit: 5bccca58b9b2b3a925b16750bedbd907695ea8d7 https://github.com/python/cpython/commit/5bccca58b9b2b3a925b16750bedbd907695... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-27 (Thu, 27 Apr 2017) Changed paths: M Lib/test/test_imaplib.py M Lib/test/test_nntplib.py Log Message: ----------- bpo-30175: Skip client cert tests of test_imaplib (#1320) * bpo-30175: Skip client cert tests of test_imaplib The IMAP server cyrus.andrew.cmu.edu doesn't accept our randomly generated client x509 certificate anymore. * bpo-30188: Catch EOFError in NetworkedNNTPTests test_nntplib fails randomly with EOFError in NetworkedNNTPTests.setUpClass(). Catch EOFError to skip tests in that case. Commit: 5a4e3d8f9c37e700402b23fafbfc413e5ca3113d https://github.com/python/cpython/commit/5a4e3d8f9c37e700402b23fafbfc413e5ca... Author: Jelle Zijlstra <jelle.zijlstra@gmail.com> Date: 2017-04-27 (Thu, 27 Apr 2017) Changed paths: M Lib/pickletools.py Log Message: ----------- bpo-30174: Remove duplicate definition from pickletools (#1301) There were two almost identical definitions of bytes1. Commit: 826f83f1d562a7b878499bc3af2267cfdfe5f2f9 https://github.com/python/cpython/commit/826f83f1d562a7b878499bc3af2267cfdfe... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-04-28 (Fri, 28 Apr 2017) Changed paths: M Makefile.pre.in M configure M configure.ac Log Message: ----------- bpo-30104: Only use -fno-strict-aliasing on dtoa.c (#1340) On clang, only compile dtoa.c with -fno-strict-aliasing, use strict aliasing to compile all other C files. Commit: 80a3da4d4aad0b51893e1e2f696b6252eca80e07 https://github.com/python/cpython/commit/80a3da4d4aad0b51893e1e2f696b6252eca... Author: Wieland Hoffmann <mineo@users.noreply.github.com> Date: 2017-04-28 (Fri, 28 Apr 2017) Changed paths: M Doc/using/windows.rst Log Message: ----------- Improve the grammar in windows.rst (GH-1330) Commit: d1a1def7bf221b04dcf3fc3a67aa19aa2f622f83 https://github.com/python/cpython/commit/d1a1def7bf221b04dcf3fc3a67aa19aa2f6... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-28 (Fri, 28 Apr 2017) Changed paths: M Lib/test/support/__init__.py M Lib/test/test_support.py M Lib/test/test_tempfile.py M Misc/NEWS Log Message: ----------- bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. (#1341) * bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. They now work when delete replaced attribute or item inside the with statement. The old value of the attribute or item (or None if it doesn't exist) now will be assigned to the target of the "as" clause, if there is one. * Update docstrings. Commit: 6c991bdee7ec4bedd8c1b8d3812dc884b654b57c https://github.com/python/cpython/commit/6c991bdee7ec4bedd8c1b8d3812dc884b65... Author: Neil Schemenauer <nas-github@arctrix.com> Date: 2017-04-28 (Fri, 28 Apr 2017) Changed paths: M setup.py Log Message: ----------- Check that Python is 64-bit before enabling BLAKE2_USE_SSE. (#1332) Commit: 3cc8259b71ef784a9f7593f04da96043afe2228a https://github.com/python/cpython/commit/3cc8259b71ef784a9f7593f04da96043afe... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-29 (Sat, 29 Apr 2017) Changed paths: M Lib/test/test_importlib/test_abc.py Log Message: ----------- bpo-30158: Fix deprecation warnings in test_importlib introduced by bpo-29576. (#1285) Commit: 9dc2b3809f38be2e403ee264958106badfda142d https://github.com/python/cpython/commit/9dc2b3809f38be2e403ee264958106badfd... Author: csabella <chekat2@gmail.com> Date: 2017-04-29 (Sat, 29 Apr 2017) Changed paths: M Doc/library/idle.rst Log Message: ----------- bpo-30208: DOC: fix small typos in IDLE (#1354) Commit: 2e624690bd74071358566300b7ef0bc45f444a30 https://github.com/python/cpython/commit/2e624690bd74071358566300b7ef0bc45f4... Author: Jelle Zijlstra <jelle.zijlstra@gmail.com> Date: 2017-04-30 (Sun, 30 Apr 2017) Changed paths: M Doc/library/contextlib.rst M Doc/reference/datamodel.rst M Doc/whatsnew/3.7.rst M Lib/contextlib.py A Lib/test/test_contextlib_async.py Log Message: ----------- bpo-29679: Implement @contextlib.asynccontextmanager (#360) Commit: 1374dbb6940f29c49c2966551a06015857c942cc https://github.com/python/cpython/commit/1374dbb6940f29c49c2966551a06015857c... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-01 (Mon, 01 May 2017) Changed paths: M Modules/binascii.c M Modules/clinic/binascii.c.h Log Message: ----------- restore *data* parameter of binascii.b2a_base64 to positional-only (#1352) Commit: 5d7a8d0c13737fd531b722ad76c505ef47aac96a https://github.com/python/cpython/commit/5d7a8d0c13737fd531b722ad76c505ef47a... Author: Giampaolo Rodola <g.rodola@gmail.com> Date: 2017-05-01 (Mon, 01 May 2017) Changed paths: M Lib/unittest/case.py M Lib/unittest/test/test_assertions.py M Misc/NEWS Log Message: ----------- bpo-30190: improved error msg for assertAlmostEqual(delta=...) (#1331) * #30190 / unittest / assertAlmostEqual(delta=...) / error msg: show the difference between the 2 numbers in case of failure * safe_repr() diff * also show difference when passing 'places' argument * refactoring * update Misc/NEWS Commit: 28e7b35c9f780f0836d7576dfd6671c9d6cf0ab4 https://github.com/python/cpython/commit/28e7b35c9f780f0836d7576dfd6671c9d6c... Author: Giampaolo Rodola <g.rodola@gmail.com> Date: 2017-05-01 (Mon, 01 May 2017) Changed paths: M .gitignore M .mention-bot M Doc/c-api/bytes.rst M Doc/c-api/exceptions.rst M Doc/c-api/long.rst M Doc/c-api/slice.rst M Doc/c-api/unicode.rst M Doc/distutils/sourcedist.rst M Doc/howto/argparse.rst M Doc/howto/unicode.rst M Doc/library/2to3.rst M Doc/library/asyncio-protocol.rst M Doc/library/collections.rst M Doc/library/contextlib.rst M Doc/library/copy.rst M Doc/library/ctypes.rst M Doc/library/curses.rst M Doc/library/decimal.rst M Doc/library/email.compat32-message.rst M Doc/library/functions.rst M Doc/library/http.client.rst M Doc/library/idle.rst M Doc/library/inspect.rst M Doc/library/ipaddress.rst M Doc/library/locale.rst M Doc/library/pathlib.rst M Doc/library/re.rst M Doc/library/reprlib.rst M Doc/library/select.rst M Doc/library/shlex.rst M Doc/library/ssl.rst M Doc/library/stdtypes.rst M Doc/library/test.rst M Doc/library/turtle.rst M Doc/library/types.rst M Doc/library/typing.rst M Doc/library/urllib.parse.rst M Doc/library/weakref.rst M Doc/license.rst M Doc/reference/datamodel.rst M Doc/reference/expressions.rst M Doc/tools/susp-ignored.csv M Doc/using/unix.rst M Doc/using/windows.rst M Doc/whatsnew/3.2.rst M Doc/whatsnew/3.7.rst M Include/ceval.h M Include/listobject.h M Include/pyport.h M Include/setobject.h M Include/tupleobject.h M Lib/_osx_support.py M Lib/asyncio/base_events.py M Lib/asyncio/base_subprocess.py M Lib/asyncio/compat.py M Lib/asyncio/events.py M Lib/asyncio/futures.py M Lib/asyncio/proactor_events.py M Lib/asyncio/selector_events.py M Lib/asyncio/sslproto.py M Lib/asyncio/tasks.py M Lib/asyncio/test_utils.py M Lib/asyncio/transports.py M Lib/asyncio/unix_events.py M Lib/cgi.py M Lib/contextlib.py M Lib/ctypes/test/test_win32.py M Lib/dbm/dumb.py M Lib/dis.py M Lib/distutils/command/sdist.py M Lib/distutils/tests/test_build_ext.py M Lib/http/client.py M Lib/idlelib/idle_test/test_replace.py M Lib/idlelib/pyparse.py M Lib/idlelib/run.py M Lib/importlib/_bootstrap_external.py M Lib/importlib/abc.py M Lib/inspect.py M Lib/lib2to3/fixes/fix_operator.py M Lib/lib2to3/pgen2/tokenize.py M Lib/lib2to3/tests/data/py3_test_grammar.py M Lib/locale.py M Lib/logging/__init__.py M Lib/mimetypes.py M Lib/multiprocessing/util.py M Lib/pathlib.py M Lib/pickletools.py M Lib/pstats.py M Lib/re.py M Lib/selectors.py M Lib/shelve.py M Lib/site.py M Lib/sqlite3/test/hooks.py M Lib/subprocess.py M Lib/tarfile.py M Lib/test/_test_multiprocessing.py M Lib/test/exception_hierarchy.txt M Lib/test/libregrtest/save_env.py M Lib/test/support/__init__.py M Lib/test/test_asyncore.py M Lib/test/test_builtin.py M Lib/test/test_capi.py M Lib/test/test_contextlib.py A Lib/test/test_contextlib_async.py M Lib/test/test_descr.py M Lib/test/test_dictviews.py M Lib/test/test_dis.py M Lib/test/test_exceptions.py M Lib/test/test_faulthandler.py M Lib/test/test_functools.py M Lib/test/test_getargs2.py M Lib/test/test_hash.py M Lib/test/test_imaplib.py M Lib/test/test_importlib/test_abc.py M Lib/test/test_importlib/test_util.py M Lib/test/test_inspect.py M Lib/test/test_io.py M Lib/test/test_logging.py M Lib/test/test_nntplib.py M Lib/test/test_normalization.py M Lib/test/test_parser.py M Lib/test/test_pathlib.py M Lib/test/test_random.py M Lib/test/test_re.py M Lib/test/test_site.py M Lib/test/test_statistics.py M Lib/test/test_struct.py M Lib/test/test_subprocess.py M Lib/test/test_support.py M Lib/test/test_sys.py M Lib/test/test_tarfile.py M Lib/test/test_tempfile.py M Lib/test/test_tools/test_reindent.py M Lib/test/test_types.py M Lib/test/test_typing.py M Lib/test/test_urllib2_localnet.py M Lib/test/test_uuid.py M Lib/test/test_zipfile.py M Lib/tracemalloc.py M Lib/types.py M Lib/unittest/case.py M Lib/unittest/main.py M Lib/unittest/test/test_assertions.py M Lib/urllib/error.py M Lib/urllib/request.py M Lib/weakref.py M Lib/xml/etree/ElementTree.py M Lib/zipfile.py M Makefile.pre.in M Misc/ACKS M Misc/NEWS M Modules/_bz2module.c M Modules/_ctypes/_ctypes.c M Modules/_cursesmodule.c M Modules/_dbmmodule.c M Modules/_elementtree.c M Modules/_gdbmmodule.c M Modules/_io/_iomodule.c M Modules/_io/_iomodule.h M Modules/_io/bufferedio.c M Modules/_io/clinic/_iomodule.c.h M Modules/_io/fileio.c M Modules/_io/iobase.c M Modules/_io/stringio.c M Modules/_io/textio.c M Modules/_multiprocessing/multiprocessing.c M Modules/_multiprocessing/semaphore.c M Modules/_posixsubprocess.c M Modules/_randommodule.c M Modules/_sre.c M Modules/_ssl.c M Modules/_struct.c M Modules/_testbuffer.c M Modules/_testcapimodule.c M Modules/_winapi.c M Modules/arraymodule.c M Modules/binascii.c M Modules/cjkcodecs/multibytecodec.c M Modules/clinic/_sre.c.h M Modules/clinic/binascii.c.h M Modules/faulthandler.c M Modules/fcntlmodule.c M Modules/itertoolsmodule.c M Modules/main.c M Modules/mmapmodule.c M Modules/ossaudiodev.c M Modules/parsermodule.c M Modules/posixmodule.c M Modules/readline.c M Modules/selectmodule.c M Modules/signalmodule.c M Modules/timemodule.c M Modules/zipimport.c M Objects/abstract.c M Objects/bytearrayobject.c M Objects/bytesobject.c M Objects/clinic/typeobject.c.h M Objects/codeobject.c M Objects/exceptions.c M Objects/listobject.c M Objects/memoryobject.c M Objects/namespaceobject.c M Objects/object.c M Objects/odictobject.c M Objects/setobject.c M Objects/tupleobject.c M Objects/typeobject.c M Objects/unicodeobject.c M PC/clinic/msvcrtmodule.c.h M PC/msvcrtmodule.c M PCbuild/pcbuild.sln M Python/bltinmodule.c M Python/getargs.c M Python/importlib_external.h M Tools/scripts/patchcheck.py M Tools/scripts/reindent.py M aclocal.m4 M configure M configure.ac M pyconfig.h.in M setup.py Log Message: ----------- Merge branch 'master' into selectors-refactoring Commit: d4069de5112f0408801ff2479476827bb3e0e8fc https://github.com/python/cpython/commit/d4069de5112f0408801ff2479476827bb3e... Author: Nathaniel J. Smith <njs@pobox.com> Date: 2017-05-01 (Mon, 01 May 2017) Changed paths: M Doc/library/ssl.rst Log Message: ----------- Clean up some confusing text left by PROTOCOL_SSLv23 -> PROTOCOL_TLS transition (#1355) Commit: 92fd6c9ef54a857815e3dca8ee74b2b4f5cdf154 https://github.com/python/cpython/commit/92fd6c9ef54a857815e3dca8ee74b2b4f5c... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M Lib/distutils/tests/test_build_ext.py Log Message: ----------- bpo-30132: distutils BuildExtTestCase use temp_cwd (#1380) BuildExtTestCase of test_distutils now uses support.temp_cwd() in setUp() to remove files created in the current working in all BuildExtTestCase unit tests, not only test_build_ext(). Move also tearDown() just after setUp(). Commit: 1dae7450c68bad498e57800387b24cb103c461fa https://github.com/python/cpython/commit/1dae7450c68bad498e57800387b24cb103c... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M Lib/test/test_ssl.py Log Message: ----------- bpo-30199: test_ssl closes all asyncore channels (#1381) AsyncoreEchoServer of test_ssl now calls asyncore.close_all(ignore_all=True) to ensure that asyncore.socket_map is cleared once the test completes, even if ConnectionHandler was not correctly unregistered. Fix the following warning: Warning -- asyncore.socket_map was modified by test_ssl Before: {} After: {6: <test.test_ssl.AsyncoreEchoServer.EchoServer.ConnectionHandler>} Commit: 999707373630ce090300c3c542066f493b12faa0 https://github.com/python/cpython/commit/999707373630ce090300c3c542066f493b1... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M Misc/NEWS M Modules/_io/fileio.c Log Message: ----------- bpo-30228: FileIO seek() and tell() set seekable (#1384) FileIO.seek() and FileIO.tell() method now set the internal seekable attribute to avoid one syscall on open() (in buffered or text mode). The seekable property is now also more reliable since its value is set correctly on memory allocation failure. Commit: b0d82036549074357717d130a772d1e2ebc8ea01 https://github.com/python/cpython/commit/b0d82036549074357717d130a772d1e2ebc... Author: Tong SHEN <funnycrabneverfail@gmail.com> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M Doc/library/selectors.rst Log Message: ----------- Fix typo in selectors.rst (#1383) decriptor -> descriptor Commit: 495b5021e73e3c4b6404417ecf4fa83aa10297f0 https://github.com/python/cpython/commit/495b5021e73e3c4b6404417ecf4fa83aa10... Author: Antoine Pitrou <pitrou@free.fr> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M Lib/test/test_socket.py M Misc/NEWS M Modules/socketmodule.c Log Message: ----------- bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux (#1370) * bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux * Add NEWS entry Commit: f06e0218ef6007667f5d61184b85a81a0466d3ae https://github.com/python/cpython/commit/f06e0218ef6007667f5d61184b85a81a046... Author: Ivan Levkivskyi <levkivskyi@gmail.com> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M Lib/test/test_typing.py M Lib/typing.py M Misc/NEWS Log Message: ----------- bpo-28556: Routine updates to typing (#1366) - Add NoReturn type - Use WrapperDescriptorType (original PR by Jim Fasarakis-Hilliard) - Minor bug-fixes Commit: 094909ad69a6654ac43c69ebdced060fbbbbede8 https://github.com/python/cpython/commit/094909ad69a6654ac43c69ebdced060fbbb... Author: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M Lib/test/test_isinstance.py Log Message: ----------- Remove outdated tests in test_isinstance (GH-1393) There is no need to test for new-style classes versus classic classes in Python 3. Commit: 5facdbb29169c2799c42f887cef4cd9d087b0167 https://github.com/python/cpython/commit/5facdbb29169c2799c42f887cef4cd9d087... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M configure.ac Log Message: ----------- bpo-30232: Support Git worktree in configure.ac (#1391) Don't test if .git/HEAD file exists, but only if the .git file (or directory) exists. Commit: 9ed34a89532763cf89f5e11fffb91ef7dee29fed https://github.com/python/cpython/commit/9ed34a89532763cf89f5e11fffb91ef7dee... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M configure Log Message: ----------- bpo-30232: Regenerate configure (#1396) Run autoconf. Commit: 0360a9d015ddbc4e3d58e3ab4b433da27bf1db3a https://github.com/python/cpython/commit/0360a9d015ddbc4e3d58e3ab4b433da27bf... Author: Antoine Pitrou <pitrou@free.fr> Date: 2017-05-02 (Tue, 02 May 2017) Changed paths: M Lib/test/test_socket.py Log Message: ----------- Fix tests: getsockname() can return None on OS X on unbound sockets (#1400) Commit: 13f1f423fac39f8f14a3ce919dd236975517d5c6 https://github.com/python/cpython/commit/13f1f423fac39f8f14a3ce919dd23697551... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-03 (Wed, 03 May 2017) Changed paths: M Doc/library/binascii.rst M Doc/library/uu.rst M Doc/tools/susp-ignored.csv M Doc/whatsnew/3.7.rst M Lib/test/test_binascii.py M Lib/test/test_uu.py M Lib/uu.py M Misc/NEWS M Modules/binascii.c M Modules/clinic/binascii.c.h Log Message: ----------- bpo-30103: Allow Uuencode in Python using backtick as zero instead of space (#1326) Commit: a5c62a8e9f0de6c4133825a5710984a3cd5e102b https://github.com/python/cpython/commit/a5c62a8e9f0de6c4133825a5710984a3cd5... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-03 (Wed, 03 May 2017) Changed paths: R .hgtouch M Mac/BuildScript/build-installer.py M Makefile.pre.in M Misc/NEWS R Tools/hg/hgtouch.py M configure M configure.ac Log Message: ----------- bpo-23404: make touch becomes make regen-all (#1405) Don't rebuild generated files based on file modification time anymore, the action is now explicit. Replace "make touch" with "make regen-all". Changes: * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch * Add a new "make regen-all" command to rebuild all generated files * Add subcommands to only generate specific files: - regen-ast: Include/Python-ast.h and Python/Python-ast.c - regen-grammar: Include/graminit.h and Python/graminit.c - regen-importlib: Python/importlib_external.h and Python/importlib.h - regen-opcode: Include/opcode.h - regen-opcode-targets: Python/opcode_targets.h - regen-typeslots: Objects/typeslots.inc * Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN * pgen is now only built by by "make regen-grammar" * Add $(srcdir)/ prefix to paths to source files to handle correctly compilation outside the source directory Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make" default target building Python. Commit: 8856940cf2e82cb17db2b684cd5732fe658605ca https://github.com/python/cpython/commit/8856940cf2e82cb17db2b684cd5732fe658... Author: UltimateCoder <jaysinhp@gmail.com> Date: 2017-05-03 (Wed, 03 May 2017) Changed paths: M Doc/extending/newtypes.rst M Doc/howto/functional.rst M Doc/library/ctypes.rst M Doc/library/doctest.rst M Doc/library/fpectl.rst M Doc/library/pdb.rst M Doc/library/unicodedata.rst M Doc/reference/expressions.rst M Doc/tutorial/classes.rst M Doc/tutorial/controlflow.rst M Doc/tutorial/datastructures.rst M Doc/tutorial/inputoutput.rst Log Message: ----------- bpo-28315: Improve code examples in docs (GH-1372) Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module> Commit: 7fdd30975e3fa9ec4be62464a9fcab7798d0ed6e https://github.com/python/cpython/commit/7fdd30975e3fa9ec4be62464a9fcab7798d... Author: Brett Cannon <brettcannon@users.noreply.github.com> Date: 2017-05-03 (Wed, 03 May 2017) Changed paths: M .github/CONTRIBUTING.rst Log Message: ----------- Explicitly mention what should (not) be discussed on GitHub (GH-1437) Commit: feec3dc9c308052754f9e4848c1c1ddb007e9f66 https://github.com/python/cpython/commit/feec3dc9c308052754f9e4848c1c1ddb007... Author: Christian Heimes <christian@python.org> Date: 2017-05-03 (Wed, 03 May 2017) Changed paths: M .mention-bot Log Message: ----------- Add myself to mention-bot's alwaysNotifyForPaths for ssl/hashlib (#1425) Signed-off-by: Christian Heimes <christian@python.org> Commit: 5f161fd86dd5bb936a1a2a13391b13b7e59ec201 https://github.com/python/cpython/commit/5f161fd86dd5bb936a1a2a13391b13b7e59... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-04 (Thu, 04 May 2017) Changed paths: M Lib/test/test_capi.py M Modules/_testcapimodule.c Log Message: ----------- bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (#1316) Commit: 1c4670ea0cc3d208121af11b9b973e6bb268e570 https://github.com/python/cpython/commit/1c4670ea0cc3d208121af11b9b973e6bb26... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-04 (Thu, 04 May 2017) Changed paths: M Python/pylifecycle.c Log Message: ----------- bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443) is_valid_fd() now uses fstat() instead of dup() on macOS to return 0 on a pipe when the other side of the pipe is closed. fstat() fails with EBADF in that case, whereas dup() succeed. Commit: 7e4db2f253c555568d56177c2fd083bcf8f88d34 https://github.com/python/cpython/commit/7e4db2f253c555568d56177c2fd083bcf8f... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-04 (Thu, 04 May 2017) Changed paths: M Lib/code.py M Lib/doctest.py M Lib/http/server.py M Lib/idlelib/pyshell.py M Lib/profile.py M Lib/tabnanny.py M Lib/trace.py Log Message: ----------- bpo-30166: Import command-line parsing modules only when needed. (#1293) Commit: dbaf746b6de0ee431c809d3175ab40ccc18898a8 https://github.com/python/cpython/commit/dbaf746b6de0ee431c809d3175ab40ccc18... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-04 (Thu, 04 May 2017) Changed paths: M Doc/library/cmath.rst M Doc/library/math.rst M Doc/whatsnew/3.6.rst Log Message: ----------- bpo-29956: Improve the math.exp() related documentation. (#1073) Commit: 3d0056842c5e06b4102f990b59ab3b607f932dd8 https://github.com/python/cpython/commit/3d0056842c5e06b4102f990b59ab3b607f9... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-04 (Thu, 04 May 2017) Changed paths: M Lib/test/libregrtest/cmdline.py M Lib/test/libregrtest/main.py M Lib/test/test_regrtest.py Log Message: ----------- bpo-30263: regrtest: log system load (#1452) * bpo-30263: regrtest: log system load * regrtest: log the number of CPUs Log the number of CPUs in the header. --verbose now imply --header. Commit: 6dd4d734ed207ba16b017e38f8909de7ef187e29 https://github.com/python/cpython/commit/6dd4d734ed207ba16b017e38f8909de7ef1... Author: Antoine Pitrou <pitrou@free.fr> Date: 2017-05-04 (Thu, 04 May 2017) Changed paths: M Lib/multiprocessing/forkserver.py M Misc/NEWS Log Message: ----------- bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (#1319) * bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver * Tweak comment Commit: b109a1d3360fc4bb87b9887264e3634632d392ca https://github.com/python/cpython/commit/b109a1d3360fc4bb87b9887264e3634632d... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-04 (Thu, 04 May 2017) Changed paths: M Doc/library/sysconfig.rst M Lib/distutils/sysconfig.py Log Message: ----------- bpo-30273: Update sysconfig (#1464) The AST_H_DIR variable was removed from Makefile.pre.in by the commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b (bpo-23404). AST_H_DIR was hardcoded to "Include", so replace the removed variable by its content. Remove also ASDLGEN variable from sysconfig example since this variable was also removed. Commit: 647c3d381e67490e82cdbbe6c96e46d5e1628ce2 https://github.com/python/cpython/commit/647c3d381e67490e82cdbbe6c96e46d5e16... Author: Brett Cannon <brettcannon@users.noreply.github.com> Date: 2017-05-04 (Thu, 04 May 2017) Changed paths: M .codecov.yml Log Message: ----------- Make code coverage less strict (GH-1438) Set the target to be 90% since there is enough OS-specific code and things that require manual testing that we will never hit 100%. Also turn off the status checks since they are so inconsistent in terms of flagging a PR as passing/failing that they aren't useful and can actually block merging from a phone. Commit: 898ff03e1e7925ecde3da66327d3cdc7e07625ba https://github.com/python/cpython/commit/898ff03e1e7925ecde3da66327d3cdc7e07... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-05 (Fri, 05 May 2017) Changed paths: M Doc/library/re.rst M Lib/re.py M Lib/sre_compile.py M Lib/sre_constants.py M Lib/test/test_re.py M Misc/NEWS M Modules/_sre.c M Modules/sre_constants.h M Modules/sre_lib.h Log Message: ----------- bpo-30215: Make re.compile() locale agnostic. (#1361) Compiled regular expression objects with the re.LOCALE flag no longer depend on the locale at compile time. Only the locale at matching time affects the result of matching. Commit: 76a3e51a403bc84ed536921866c86dd7d07aaa7e https://github.com/python/cpython/commit/76a3e51a403bc84ed536921866c86dd7d07... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-05 (Fri, 05 May 2017) Changed paths: M Misc/NEWS M Modules/_json.c Log Message: ----------- bpo-30243: Fixed the possibility of a crash in _json. (#1420) It was possible to get a core dump by using uninitialized _json objects. Now __new__ methods create initialized objects. __init__ methods are removed. Commit: 7186cc29be352bed6f1110873283d073fd0643e4 https://github.com/python/cpython/commit/7186cc29be352bed6f1110873283d073fd0... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-05 (Fri, 05 May 2017) Changed paths: M Lib/sre_compile.py M Lib/test/test_re.py M Modules/_sre.c M Modules/clinic/_sre.c.h Log Message: ----------- bpo-30277: Replace _sre.getlower() with _sre.ascii_tolower() and _sre.unicode_tolower(). (#1468) Commit: ef9c0e732fc50aefbdd7c5a80e04e14b31684e66 https://github.com/python/cpython/commit/ef9c0e732fc50aefbdd7c5a80e04e14b316... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-05 (Fri, 05 May 2017) Changed paths: M Lib/test/test_sax.py M Lib/xml/sax/expatreader.py Log Message: ----------- bpo-30264: ExpatParser closes the source on error (#1451) ExpatParser.parse() of xml.sax.xmlreader now always closes the source: close the file object or the urllib object if source is a string (not an open file-like object). The change fixes a ResourceWarning on parsing error. Add test_parse_close_source() unit test. Commit: fdaeea620f8c78da89cddba4ab010c64535800e0 https://github.com/python/cpython/commit/fdaeea620f8c78da89cddba4ab010c64535... Author: Masayuki Yamamoto <ma3yuki.8mamo10@gmail.com> Date: 2017-05-05 (Fri, 05 May 2017) Changed paths: M Python/thread.c R Python/thread_foobar.h Log Message: ----------- bpo-30279: Remove unused Python/thread_foobar.h (#1473) Python/thread_foobar.h is the template code that is threading adaptation for new platforms, also hasn't been used on actual platforms. Python/thread_*.h give concrete examples of adaptation instead of the template code. Commit: c07b3a15be5e0a68a73b4c532861ed8de6932bd2 https://github.com/python/cpython/commit/c07b3a15be5e0a68a73b4c532861ed8de69... Author: masklinn <github.com@masklinn.net> Date: 2017-05-05 (Fri, 05 May 2017) Changed paths: M Doc/library/cgitb.rst Log Message: ----------- bpo-29920: Document cgitb.text() and cgitb.html() functions (GH-849) Commit: a1054c3b0037d4c2a5492e79fc193f36245366c7 https://github.com/python/cpython/commit/a1054c3b0037d4c2a5492e79fc193f36245... Author: torsava <torsava@redhat.com> Date: 2017-05-05 (Fri, 05 May 2017) Changed paths: M Makefile.pre.in M Misc/ACKS M Misc/NEWS Log Message: ----------- bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash Commit: a12df7b7d40dbf47825917c8fa03d2c09b5a382c https://github.com/python/cpython/commit/a12df7b7d40dbf47825917c8fa03d2c09b5... Author: Jelle Zijlstra <jelle.zijlstra@gmail.com> Date: 2017-05-05 (Fri, 05 May 2017) Changed paths: M Doc/library/shutil.rst M Lib/shutil.py M Lib/test/test_shutil.py M Misc/NEWS Log Message: ----------- bpo-30218: support path-like objects in shutil.unpack_archive() (GH-1367) Thanks to Jelle Zijlstra for the patch. Commit: 3763ea865cee5bbabcce11cd577811135e0fc747 https://github.com/python/cpython/commit/3763ea865cee5bbabcce11cd577811135e0... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-06 (Sat, 06 May 2017) Changed paths: M Lib/zipfile.py M Misc/NEWS Log Message: ----------- Revert bpo-26293 for zipfile breakage. See also bpo-29094. (#1484) Commit: 55ace65eba587fe3cf3759a43cccf85214651971 https://github.com/python/cpython/commit/55ace65eba587fe3cf3759a43cccf852146... Author: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> Date: 2017-05-07 (Sun, 07 May 2017) Changed paths: M Doc/library/logging.rst Log Message: ----------- Closes bpo-30168: indent methods in Logger Class (#1295) Commit: f34c6850203a2406c4950af7a9c8a134145df4ea https://github.com/python/cpython/commit/f34c6850203a2406c4950af7a9c8a134145... Author: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> Date: 2017-05-08 (Mon, 08 May 2017) Changed paths: M Doc/reference/simple_stmts.rst Log Message: ----------- Fix a trivial typo in global section (#1497) Commit: cc3fa204d357be5fafc10eb8c2a80fe0bca998f1 https://github.com/python/cpython/commit/cc3fa204d357be5fafc10eb8c2a80fe0bca... Author: Pierre Quentel <pierre.quentel@gmail.com> Date: 2017-05-08 (Mon, 08 May 2017) Changed paths: M Doc/library/cgi.rst M Doc/whatsnew/3.7.rst M Lib/cgi.py M Lib/test/test_cgi.py M Misc/NEWS Log Message: ----------- bpo-29979: Rewrite cgi.parse_multipart to make it consistent with FieldStorage (#991) Commit: fa5abac1e6cd74979557d5a6f960a55f40a10b0e https://github.com/python/cpython/commit/fa5abac1e6cd74979557d5a6f960a55f40a... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-09 (Tue, 09 May 2017) Changed paths: M Makefile.pre.in Log Message: ----------- bpo-30289: remove Misc/python-config.sh when make distclean (#1498) Commit: 9da408d15bdef624a5632182cb4edf98001fa82f https://github.com/python/cpython/commit/9da408d15bdef624a5632182cb4edf98001... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-09 (Tue, 09 May 2017) Changed paths: M Lib/test/test_codecencodings_cn.py M Misc/NEWS M Modules/cjkcodecs/_codecs_cn.c Log Message: ----------- bpo-29990: Fix range checking in GB18030 decoder (#1495) When decoding a 4-byte GB18030 sequence, the first and third byte cannot exceed 0xFE. Commit: 74683fc6247c522ae955a6e7308b8ff51def35d8 https://github.com/python/cpython/commit/74683fc6247c522ae955a6e7308b8ff51de... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-09 (Tue, 09 May 2017) Changed paths: M Lib/test/libregrtest/main.py M Lib/test/libregrtest/runtest_mp.py Log Message: ----------- bpo-30258: regrtest: Fix run_tests_multiprocess() (#1479) If the child process exited with a non-zero code, don't strip the last line of stdout anymore. Add also a sanity check in accumulate_result(). Commit: dbdea629e2e0e4bd8845aa55041e0a0ca4172cf3 https://github.com/python/cpython/commit/dbdea629e2e0e4bd8845aa55041e0a0ca41... Author: Jeremy Kloth <jeremy.kloth@gmail.com> Date: 2017-05-09 (Tue, 09 May 2017) Changed paths: M Lib/distutils/sysconfig.py Log Message: ----------- bpo-30273: update distutils.sysconfig for venv's created from Python (#1515) compiled out-of-tree (builddir != srcdir). (see also bpo-15366) Commit: f93234bb8a87855f295d441524e519481ce6ab13 https://github.com/python/cpython/commit/f93234bb8a87855f295d441524e519481ce... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-09 (Tue, 09 May 2017) Changed paths: M Doc/whatsnew/3.7.rst M Lib/test/test_import/__init__.py A Lib/test/test_import/data/circular_imports/binding.py A Lib/test/test_import/data/circular_imports/binding2.py M Misc/NEWS M Python/compile.c Log Message: ----------- bpo-30024: Circular imports involving absolute imports with binding (#1264) a submodule to a name are now supported. Commit: 6d336a027913327fc042b0d758a16724fea27b9c https://github.com/python/cpython/commit/6d336a027913327fc042b0d758a16724fea... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-09 (Tue, 09 May 2017) Changed paths: M Doc/whatsnew/3.7.rst M Lib/sre_compile.py M Lib/test/test_re.py M Misc/NEWS M Modules/_sre.c M Modules/clinic/_sre.c.h Log Message: ----------- bpo-30285: Optimize case-insensitive matching and searching (#1482) of regular expressions. Commit: 291557e2904fa149ee3d56142f41acf63c47fea3 https://github.com/python/cpython/commit/291557e2904fa149ee3d56142f41acf63c4... Author: Charles <peacech@gmail.com> Date: 2017-05-09 (Tue, 09 May 2017) Changed paths: M PCbuild/build.bat Log Message: ----------- PCbuild/build.bat: pass command line parameters when building PGO (#1510) Custom msbuild properties passed as command line need to be passed too when calling `Build` when doing PGO build. Commit: 211a392cc15f9a7b1b8ce65d8f6c9f8237d1b77f https://github.com/python/cpython/commit/211a392cc15f9a7b1b8ce65d8f6c9f8237d... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-10 (Wed, 10 May 2017) Changed paths: M Lib/test/eintrdata/eintr_tester.py Log Message: ----------- bpo-30320: test_eintr now uses pthread_sigmask() (#1523) Rewrite sigwaitinfo() and sigtimedwait() unit tests for EINTR using pthread_sigmask() to fix a race condition between the child and the parent process. Remove the pipe which was used as a weak workaround against the race condition. sigtimedwait() is now tested with a child process sending a signal instead of testing the timeout feature which is more unstable (especially regarding to clock resolution depending on the platform). Commit: 305ccbe27ea5ba82fd2d8c32ec739f980e524330 https://github.com/python/cpython/commit/305ccbe27ea5ba82fd2d8c32ec739f980e5... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-10 (Wed, 10 May 2017) Changed paths: M Lib/sre_parse.py M Lib/test/test_re.py M Misc/NEWS Log Message: ----------- bpo-30298: Weaken the condition of deprecation warnings for inline modifiers. (#1490) Now allowed several subsequential inline modifiers at the start of the pattern (e.g. '(?i)(?s)...'). In verbose mode whitespaces and comments now are allowed before and between inline modifiers (e.g. '(?x) (?i) (?s)...'). Commit: 2ddf5a19c3a06978edff2c8ba0aaf5df3528204a https://github.com/python/cpython/commit/2ddf5a19c3a06978edff2c8ba0aaf5df352... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-10 (Wed, 10 May 2017) Changed paths: M Doc/c-api/slice.rst M Objects/sliceobject.c M Python/ceval.c Log Message: ----------- bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480) Commit: f6eae5bf1c5d7b83e5d5bdbecfff928e478c1cfd https://github.com/python/cpython/commit/f6eae5bf1c5d7b83e5d5bdbecfff928e478... Author: stratakis <cstratak@redhat.com> Date: 2017-05-10 (Wed, 10 May 2017) Changed paths: M Makefile.pre.in M Misc/ACKS M Misc/NEWS Log Message: ----------- bpo-28787: Fix out of tree --with-dtrace builds (#135) * bpo-28787: Fix out of tree --with-dtrace builds * Unsilence directory creation * Add Misc/NEWS and Misc/ACKS entries Commit: c4750959acbfc3057f12aaec832483ba30898d1c https://github.com/python/cpython/commit/c4750959acbfc3057f12aaec832483ba308... Author: Giampaolo Rodola <g.rodola@gmail.com> Date: 2017-05-10 (Wed, 10 May 2017) Changed paths: M Lib/unittest/test/test_assertions.py Log Message: ----------- #30190: fix invalid escape sequence warnings (#1534) Commit: 991adca012f5e106c2d4040ce619c696ba6f9c46 https://github.com/python/cpython/commit/991adca012f5e106c2d4040ce619c696ba6... Author: INADA Naoki <methane@users.noreply.github.com> Date: 2017-05-11 (Thu, 11 May 2017) Changed paths: M Lib/asyncio/tasks.py M Lib/test/test_asyncio/test_tasks.py M Misc/NEWS M Modules/_asynciomodule.c Log Message: ----------- bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1097) when there are no more `await` or `yield (from)` before return in coroutine, cancel was ignored. example: async def coro(): asyncio.Task.current_task().cancel() return 42 ... res = await coro() # should raise CancelledError Commit: f111fd2e65ef7aefd4ebeadbb48e84d609bf3733 https://github.com/python/cpython/commit/f111fd2e65ef7aefd4ebeadbb48e84d609b... Author: csabella <chekat2@gmail.com> Date: 2017-05-11 (Thu, 11 May 2017) Changed paths: M Lib/test/test_random.py Log Message: ----------- bpo-30308: Code coverage for argument in random.shuffle (#1504) * bpo-30308: Code coverage for argument in random.shuffle * bpo-30308: Code coverage for argument in random.shuffle * bpo-30308: Code coverage for argument in random.shuffle Commit: 31b3901a078774b28a88dc410376c46e28c52c9c https://github.com/python/cpython/commit/31b3901a078774b28a88dc410376c46e28c... Author: Brett Cannon <brettcannon@users.noreply.github.com> Date: 2017-05-11 (Thu, 11 May 2017) Changed paths: M .travis.yml Log Message: ----------- Comment as to why docs are built against Python 3.6 (#1550) Commit: 82a638473315861e0eeaf8d367a905a5f5b06f7d https://github.com/python/cpython/commit/82a638473315861e0eeaf8d367a905a5f5b... Author: Vinay Sajip <vinay_sajip@yahoo.co.uk> Date: 2017-05-12 (Fri, 12 May 2017) Changed paths: M Doc/library/logging.rst Log Message: ----------- Indented Handler sections for improved clarity. (#1554) Indented parts of the Handler class documentation for improved presentation, analogous to a recent similar change for the Logger class. Commit: 870f6a11dd3b2d5455f7057ce0d9c2cd31acc2f2 https://github.com/python/cpython/commit/870f6a11dd3b2d5455f7057ce0d9c2cd31a... Author: Steve (Gadget) Barnes <gadgetsteve@hotmail.com> Date: 2017-05-12 (Fri, 12 May 2017) Changed paths: M PC/launcher.c Log Message: ----------- bpo-30291 Changes to launcher so as to allow py -3-32, -2.7-64, 3.10, etc. bpo-30291 Changes to launcher so as to allow py -3-32, -2.7-64, 3.10, etc. Commit: 8619c5417ceddb4165c68b9b8aacababd49b0607 https://github.com/python/cpython/commit/8619c5417ceddb4165c68b9b8aacababd49... Author: Charles <peacech@gmail.com> Date: 2017-05-12 (Fri, 12 May 2017) Changed paths: M PCbuild/build.bat Log Message: ----------- PCbuild/build.bat: Add note about using msbuild response file. (#1551) Using a response file will eliminate the headache associated with batch argument/quote processing. For example I unsucessfully compiled python with visualcpptools when specifying VSInstallDir in the batch file (cannot find vcruntime.h) ```batch build.bat -p x64 -e -M --no-tkinter "/p:VCInstallDir=%VCInstallDir%" ``` but it build successfully when specifying it in a response file msbuild.rsp: ``` /p:VCInstallDir=%VCInstallDir% ``` Commit: a66f9c6bb134561a24374f10e8c35417d356ce14 https://github.com/python/cpython/commit/a66f9c6bb134561a24374f10e8c35417d35... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-13 (Sat, 13 May 2017) Changed paths: M Include/object.h M Objects/object.c Log Message: ----------- bpo-30341: Improve _PyTrash_thread_destroy_chain() a little bit (#1545) * add a comment about why we need to increase trash_delete_nesting * move increase and decrese outside of the loop Commit: 7e19dbc92ec06a987eaae72f7cdfd32006aa4960 https://github.com/python/cpython/commit/7e19dbc92ec06a987eaae72f7cdfd32006a... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-13 (Sat, 13 May 2017) Changed paths: M Doc/reference/datamodel.rst M Doc/whatsnew/3.7.rst M Misc/NEWS M Objects/typeobject.c Log Message: ----------- bpo-28974: `object.__format__(x, '')` is now equivalent to `str(x)` (#506) rather than `format(str(self), '')`. Commit: c71168090df435c1eb8c03005b11df764cd7ebd6 https://github.com/python/cpython/commit/c71168090df435c1eb8c03005b11df764cd... Author: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> Date: 2017-05-13 (Sat, 13 May 2017) Changed paths: M Doc/library/mimetypes.rst Log Message: ----------- bpo-30178: Indent methods and attributes of MimeType class (GH-1306) Commit: 600c5ad53c0112d48581c48f986ea04676a28c44 https://github.com/python/cpython/commit/600c5ad53c0112d48581c48f986ea04676a... Author: Mariatta <Mariatta@users.noreply.github.com> Date: 2017-05-13 (Sat, 13 May 2017) Changed paths: M Misc/ACKS Log Message: ----------- bpo-30178: Add Jim Fasarakis-Hilliard to Misc/ACKS (GH-1572) Commit: cbddf58c797f850a5b06f317a4bb7ab69c6e9715 https://github.com/python/cpython/commit/cbddf58c797f850a5b06f317a4bb7ab69c6... Author: morrme <morrme@users.noreply.github.com> Date: 2017-05-13 (Sat, 13 May 2017) Changed paths: R .codecov.yml A .github/codecov.yml Log Message: ----------- Move Codecov's configuration file under .github (GH-1494) Commit: 821a9d146bc04a1bc1a9807962990a1f59d692b8 https://github.com/python/cpython/commit/821a9d146bc04a1bc1a9807962990a1f59d... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-14 (Sun, 14 May 2017) Changed paths: M Lib/sre_compile.py M Lib/sre_parse.py M Lib/test/test_re.py M Misc/NEWS Log Message: ----------- bpo-30340: Enhanced regular expressions optimization. (#1542) This increased the performance of matching some patterns up to 25 times. Commit: 4ab6abfca4d6e444cca04821b24701cde6993f4e https://github.com/python/cpython/commit/4ab6abfca4d6e444cca04821b24701cde69... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-14 (Sun, 14 May 2017) Changed paths: M Lib/sre_compile.py M Lib/test/test_re.py M Misc/NEWS Log Message: ----------- bpo-30299: Display a bytecode when compile a regex in debug mode. (#1491) `re.compile(..., re.DEBUG)` now displays the compiled bytecode in human readable form. Commit: 99776296230ddd8429ebad2d07854b8c27ea10ab https://github.com/python/cpython/commit/99776296230ddd8429ebad2d07854b8c27e... Author: csabella <chekat2@gmail.com> Date: 2017-05-14 (Sun, 14 May 2017) Changed paths: M Doc/library/profile.rst Log Message: ----------- bpo-30358: Document sort argument of profile.runctx() (GH-1566) Commit: d48214f22c84f3d949457c854e263074994b6fa2 https://github.com/python/cpython/commit/d48214f22c84f3d949457c854e263074994... Author: Zachary Ware <zachary.ware@gmail.com> Date: 2017-05-14 (Sun, 14 May 2017) Changed paths: M Lib/test/test_site.py Log Message: ----------- bpo-29763: Clean up _pth tests (GH-954) Commit: 12b1c180986fc744331b8f30d3d2f49a0fdb43dd https://github.com/python/cpython/commit/12b1c180986fc744331b8f30d3d2f49a0fd... Author: csabella <chekat2@gmail.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Doc/reference/datamodel.rst Log Message: ----------- bpo-30354: Update data model documentation for super() (GH-1561) The data model section of the language reference was written well before the zero-argument form of super() was added. To avoid giving the impression that they're doing something unusual, this updates the description of `__new__` and `__init__` to use the zero-argument form. Patch by Cheryl Sabella. Commit: 96f502856796f9310fed7161dc540201a4afc1ee https://github.com/python/cpython/commit/96f502856796f9310fed7161dc540201a4a... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Modules/_struct.c Log Message: ----------- bpo-30224: remove outdated checks in struct (#1374) Commit: 7c278a5eeb656c2b48a85bbd761ce165f1751bb6 https://github.com/python/cpython/commit/7c278a5eeb656c2b48a85bbd761ce165f17... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Lib/test/test_asyncio/test_events.py Log Message: ----------- bpo-30110: fix resource leak in test_asyncio.test_events (#1413) Commit: 981096f98b9c131594b0ac85ad01b63cbd11aa0a https://github.com/python/cpython/commit/981096f98b9c131594b0ac85ad01b63cbd1... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Modules/_struct.c Log Message: ----------- bpo-30242: resolve some undefined behaviours in struct (#1418) Commit: 89a1c93f046f9726310f8362227be7b8e50eea22 https://github.com/python/cpython/commit/89a1c93f046f9726310f8362227be7b8e50... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Doc/library/macpath.rst M Doc/whatsnew/3.7.rst M Lib/macpath.py M Lib/test/test_macpath.py Log Message: ----------- bpo-9850: Deprecate the macpath module (#1540) Co-Authored-By: Chi Hsuan Yen <yan12125@gmail.com>. Commit: d812eb731d886065bdd9bc94a3f0e5dfdcd671a4 https://github.com/python/cpython/commit/d812eb731d886065bdd9bc94a3f0e5dfdcd... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Misc/NEWS Log Message: ----------- bpo-9850: Document macpath deprecation in Misc/NEWS (#1590) Commit: edef358ed6d05f927bf1636cc5a920a9d868b131 https://github.com/python/cpython/commit/edef358ed6d05f927bf1636cc5a920a9d86... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Doc/library/plistlib.rst M Doc/whatsnew/3.7.rst M Lib/plistlib.py M Lib/test/test_plistlib.py M Misc/NEWS Log Message: ----------- bpo-29196: Removed old-deprecated classes Plist, Dict and _InternalDict (#488) in the plistlib module. Dict values in the result of functions readPlist() and readPlistFromBytes() are now exact dicts. Commit: 83a2c2879839da2e10037f5e4af1bd1dafbf1a52 https://github.com/python/cpython/commit/83a2c2879839da2e10037f5e4af1bd1dafb... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Lib/imaplib.py M Lib/poplib.py M Misc/NEWS Log Message: ----------- bpo-30329: Catch Windows error 10022 on shutdown() (#1538) Catch the Windows socket WSAEINVAL error (code 10022) in imaplib and poplib on shutdown(SHUT_RDWR): An invalid operation was attempted This error occurs sometimes on SSL connections. Commit: 79ef7f8e88a4972c4aecf95cfc5cd934f1861e08 https://github.com/python/cpython/commit/79ef7f8e88a4972c4aecf95cfc5cd934f18... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Lib/test/test_thread.py M Misc/ACKS M Misc/NEWS Log Message: ----------- bpo-30357: test_thread now uses threading_cleanup() (#1592) test_thread: setUp() now uses support.threading_setup() and support.threading_cleanup() to wait until threads complete to avoid random side effects on following tests. Co-Authored-By: Grzegorz Grzywacz <grzegorz.grzywacz@nazwa.pl> Commit: 7d6320ba47a229543acc0af6a64bc4e414932273 https://github.com/python/cpython/commit/7d6320ba47a229543acc0af6a64bc4e4149... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Lib/test/test_multiprocessing_main_handling.py Log Message: ----------- bpo-30339: test_multiprocessing_main_handling timeout (#1593) test_multiprocessing_main_handling: increase the test_source timeout from 10 seconds to 60 seconds, since the test fails randomly on busy buildbots. Commit: f6e863d868a621594df2a8abe072b5d4766e7137 https://github.com/python/cpython/commit/f6e863d868a621594df2a8abe072b5d4766... Author: Howie Benefiel <hben592@gmail.com> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Doc/library/urllib.parse.rst Log Message: ----------- bpo-29651 - Cover edge case of square brackets in urllib docs (#1128) Commit: 1bd7d299bd2a91f8267f97a413568ab8fe7fdfbb https://github.com/python/cpython/commit/1bd7d299bd2a91f8267f97a413568ab8fe7... Author: Senthil Kumaran <skumaran@gatech.edu> Date: 2017-05-15 (Mon, 15 May 2017) Changed paths: M Lib/test/test_urllibnet.py Log Message: ----------- Remove unused variable in test_urllibnet. (#1598) Commit: 87fa8a780e9045a26c735f085c07bba4b2d0be60 https://github.com/python/cpython/commit/87fa8a780e9045a26c735f085c07bba4b2d... Author: Berker Peksag <berker.peksag@gmail.com> Date: 2017-05-16 (Tue, 16 May 2017) Changed paths: M Doc/using/cmdline.rst M Doc/whatsnew/3.6.rst Log Message: ----------- bpo-29898: Fix incorrect env variable name (GH-1576) It should read PYTHONLEGACYWINDOWSSTDIO as stated in section "Add legacy mode" in PEP 528. Commit: c7ac7280c321b3c1679fe5f657a6be0f86adf173 https://github.com/python/cpython/commit/c7ac7280c321b3c1679fe5f657a6be0f86a... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-16 (Tue, 16 May 2017) Changed paths: M Lib/sre_parse.py M Lib/test/test_re.py M Misc/NEWS Log Message: ----------- bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595) Warnings emitted when compile a regular expression now always point to the line in the user code. Previously they could point into inners of the re module if emitted from inside of groups or conditionals. Commit: af34e0a07bc06a6248b8229247e05d1c767b2f32 https://github.com/python/cpython/commit/af34e0a07bc06a6248b8229247e05d1c767... Author: Dominik Miedziński <dominik@mdzn.pl> Date: 2017-05-16 (Tue, 16 May 2017) Changed paths: M Doc/reference/import.rst Log Message: ----------- Fix ModuleNotFoundError typo in import reference (#1606) Commit: d97b7dc94b19063f0589d401bdc4aaadc7030762 https://github.com/python/cpython/commit/d97b7dc94b19063f0589d401bdc4aaadc70... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-16 (Tue, 16 May 2017) Changed paths: M Doc/howto/urllib2.rst M Doc/library/pyexpat.rst M Doc/library/stdtypes.rst M Doc/library/xml.dom.minidom.rst M Doc/library/xml.etree.elementtree.rst M Doc/tools/susp-ignored.csv M Misc/NEWS Log Message: ----------- bpo-30380: Fix Sphinx 1.6.1 warnings. (#1613) * Use explicit numbering for footnotes referred by explicit number. * Restore missed footnote reference in stdtypes.rst. * Fix literal strings formatting in howto/urllib2.rst. * Update susp-ignored.csv for zipapp.rst. * Fix suspicious mark up in Misc/NEWS. Commit: fca224f117d25bdfec1bf7160b67438c4fcf6dee https://github.com/python/cpython/commit/fca224f117d25bdfec1bf7160b67438c4fc... Author: Mariatta <Mariatta@users.noreply.github.com> Date: 2017-05-16 (Tue, 16 May 2017) Changed paths: M .travis.yml Log Message: ----------- bpo-30380: Pin the version of Sphinx used to build the documentation (GH-1612) Commit: 4ae01496971624c75080431806ed1c08e00f22c7 https://github.com/python/cpython/commit/4ae01496971624c75080431806ed1c08e00... Author: Nathaniel J. Smith <njs@pobox.com> Date: 2017-05-16 (Tue, 16 May 2017) Changed paths: M Modules/signalmodule.c Log Message: ----------- bpo-30038: fix race condition in signal delivery + wakeup fd (#1082) Before, it was possible to get the following sequence of events (especially on Windows, where the C-level signal handler for SIGINT is run in a separate thread): - SIGINT arrives - trip_signal is called - trip_signal writes to the wakeup fd - the main thread wakes up from select()-or-equivalent - the main thread checks for pending signals, but doesn't see any - the main thread drains the wakeup fd - the main thread goes back to sleep - trip_signal sets is_tripped=1 and calls Py_AddPendingCall to notify the main thread the it should run the Python-level signal handler - the main thread doesn't notice because it's asleep This has been causing repeated failures in the Trio test suite: https://github.com/python-trio/trio/issues/119 Commit: 0774e79b93cc494b3a957d538c7c112e289973c0 https://github.com/python/cpython/commit/0774e79b93cc494b3a957d538c7c112e289... Author: csabella <chekat2@gmail.com> Date: 2017-05-16 (Tue, 16 May 2017) Changed paths: M Lib/bdb.py Log Message: ----------- bpo-30211: bdb: add docstrings (#1350) Commit: 6f75bc003ab4d5294b0291289ae03f7a8d305f46 https://github.com/python/cpython/commit/6f75bc003ab4d5294b0291289ae03f7a8d3... Author: Xiang Zhang <angwerzx@126.com> Date: 2017-05-17 (Wed, 17 May 2017) Changed paths: M Lib/multiprocessing/queues.py M Lib/test/_test_multiprocessing.py M Misc/NEWS Log Message: ----------- bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601) Under *spawn* and *forkserver* start methods, SimpleQueue.empty() could raise AttributeError due to not setting _poll in __setstate__. Commit: f8d05b3a24e745ab4a974b891ac1389e2f11ce4d https://github.com/python/cpython/commit/f8d05b3a24e745ab4a974b891ac1389e2f1... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-17 (Wed, 17 May 2017) Changed paths: M Lib/test/test_threading.py Log Message: ----------- bpo-30387: Fix warning in test_threading (#1634) test_is_alive_after_fork() now joins directly the thread to avoid the following warning added by bpo-30357: Warning -- threading_cleanup() failed to cleanup 0 threads after 2 sec (count: 0, dangling: 21) Use also a different exit code to catch generic exit code 1. Commit: 378d70642aa1c8de2a53ecb811927faf0388db2d https://github.com/python/cpython/commit/378d70642aa1c8de2a53ecb811927faf038... Author: Dong-hee Na <donghee.na92@gmail.com> Date: 2017-05-17 (Wed, 17 May 2017) Changed paths: M Lib/inspect.py M Lib/test/test_inspect.py M Misc/NEWS Log Message: ----------- bpo-30149: Fix partialmethod without explicit self parameter (#1308) Commit: 78e25ab5b33a0f9d03c9b6a6ece328abcc645c4b https://github.com/python/cpython/commit/78e25ab5b33a0f9d03c9b6a6ece328abcc6... Author: Steve Dower <steve.dower@microsoft.com> Date: 2017-05-17 (Wed, 17 May 2017) Changed paths: A PCbuild/lib.pyproj M PCbuild/pcbuild.sln Log Message: ----------- Adds lib.pyproj file to solution (#1633) * Adds lib.pyproj file to solution so that VS with Python support can open all the files in the standard library. * Remove unexpected solution configuration. * Remove lib.pyproj from solution to avoid memory issues on VS 2015. Commit: 4486a0934680af26a21f308eb9c295d2525570f2 https://github.com/python/cpython/commit/4486a0934680af26a21f308eb9c295d2525... Author: Steve Dower <steve.dower@microsoft.com> Date: 2017-05-17 (Wed, 17 May 2017) Changed paths: M PCbuild/_overlapped.vcxproj A PCbuild/fix_encoding.py Log Message: ----------- Fixes encodings in vcxproj files and adds script to automatically do it. (#1631) Commit: ab4413a7e9bda95b6fcd517073e2a51dafaa1624 https://github.com/python/cpython/commit/ab4413a7e9bda95b6fcd517073e2a51dafa... Author: Nathaniel J. Smith <njs@pobox.com> Date: 2017-05-17 (Wed, 17 May 2017) Changed paths: M Lib/test/test_generators.py M Misc/NEWS M Modules/_testcapimodule.c M Python/ceval.c Log Message: ----------- bpo-30039: Don't run signal handlers while resuming a yield from stack (#1081) If we have a chain of generators/coroutines that are 'yield from'ing each other, then resuming the stack works like: - call send() on the outermost generator - this enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - which calls send() on the next generator - which enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - ...etc. However, every time we enter _PyEval_EvalFrameDefault, the first thing we do is to check for pending signals, and if there are any then we run the signal handler. And if it raises an exception, then we immediately propagate that exception *instead* of starting to execute bytecode. This means that e.g. a SIGINT at the wrong moment can "break the chain" – it can be raised in the middle of our yield from chain, with the bottom part of the stack abandoned for the garbage collector. The fix is pretty simple: there's already a special case in _PyEval_EvalFrameEx where it skips running signal handlers if the next opcode is SETUP_FINALLY. (I don't see how this accomplishes anything useful, but that's another story.) If we extend this check to also skip running signal handlers when the next opcode is YIELD_FROM, then that closes the hole – now the exception can only be raised at the innermost stack frame. This shouldn't have any performance implications, because the opcode check happens inside the "slow path" after we've already determined that there's a pending signal or something similar for us to process; the vast majority of the time this isn't true and the new check doesn't run at all. Commit: ba365da9cee8901fad08ab0b61c7489c110e5c97 https://github.com/python/cpython/commit/ba365da9cee8901fad08ab0b61c7489c110... Author: Louie Lu <me@louie.lu> Date: 2017-05-17 (Wed, 17 May 2017) Changed paths: M Lib/idlelib/idle_test/test_textview.py M Lib/idlelib/textview.py Log Message: ----------- bpo-30303: IDLE: Add _utest argument to textview (#1499) Commit: 295304d412700cc6621bb592109fa42249a9dcdb https://github.com/python/cpython/commit/295304d412700cc6621bb592109fa42249a... Author: terryjreedy <tjreedy@udel.edu> Date: 2017-05-17 (Wed, 17 May 2017) Changed paths: M Lib/idlelib/idle_test/test_textview.py M Lib/idlelib/textview.py Log Message: ----------- IDLE test_textview: add comments and test, increase coverage to 100% (#1641) Commit: 906f5330b9c9a74cad1cf27fddaf77e99dff9edd https://github.com/python/cpython/commit/906f5330b9c9a74cad1cf27fddaf77e99df... Author: Senthil Kumaran <skumaran@gatech.edu> Date: 2017-05-17 (Wed, 17 May 2017) Changed paths: M Lib/urllib/parse.py Log Message: ----------- bpo-29976: urllib.parse clarify '' in scheme values. (GH-984) Commit: 3972628de3d569c88451a2a176a1c94d8822b8a6 https://github.com/python/cpython/commit/3972628de3d569c88451a2a176a1c94d882... Author: Jon Dufresne <jon.dufresne@gmail.com> Date: 2017-05-18 (Thu, 18 May 2017) Changed paths: M Lib/_weakrefset.py M Lib/distutils/msvc9compiler.py M Lib/email/headerregistry.py M Lib/inspect.py M Lib/logging/config.py M Lib/multiprocessing/context.py M Lib/multiprocessing/forkserver.py M Lib/multiprocessing/sharedctypes.py M Lib/pathlib.py M Lib/pstats.py M Lib/symtable.py M Lib/tokenize.py M Lib/traceback.py M Lib/turtle.py M Lib/turtledemo/wikipedia.py M Lib/urllib/request.py M Tools/gdb/libpython.py M Tools/scripts/byext.py M Tools/unicode/makeunicodedata.py Log Message: ----------- bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489) * Replaced list(<generator expression>) with list comprehension * Replaced dict(<generator expression>) with dict comprehension * Replaced set(<list literal>) with set literal * Replaced builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max()) Commit: fcdd9b6b7e73427ce5aa63cf095312f603c4edce https://github.com/python/cpython/commit/fcdd9b6b7e73427ce5aa63cf095312f603c... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-05-18 (Thu, 18 May 2017) Changed paths: M Lib/test/libregrtest/cmdline.py Log Message: ----------- bpo-27103: regrtest disables -W if -R is used (#1651) Workaround for a regrtest bug. Commit: c7b3f0fc3b9213d37a3514a6a1ca6d4c881a6961 https://github.com/python/cpython/commit/c7b3f0fc3b9213d37a3514a6a1ca6d4c881... Author: delirious-lettuce <delirious.lettuce@gmail.com> Date: 2017-05-18 (Thu, 18 May 2017) Changed paths: M Doc/library/datetime.rst Log Message: ----------- Remove trailing semicolon in datetime doc example (GH-1653) Commit: a632d00a1cbb6f4f8978cb45dd9789658cceb7c8 https://github.com/python/cpython/commit/a632d00a1cbb6f4f8978cb45dd9789658cc... Author: remitamine <remitamine@gmail.com> Date: 2017-05-19 (Fri, 19 May 2017) Changed paths: M Lib/http/client.py Log Message: ----------- Remove duplicate line in Lib/http/client.py (#1665) Commit: 3378b2062c7fbb77a9b5e6d315d6b94160fac69a https://github.com/python/cpython/commit/3378b2062c7fbb77a9b5e6d315d6b94160f... Author: delirious-lettuce <delirious.lettuce@gmail.com> Date: 2017-05-19 (Fri, 19 May 2017) Changed paths: M Doc/c-api/exceptions.rst M Doc/howto/logging-cookbook.rst M Doc/library/cmd.rst M Doc/library/email.compat32-message.rst M Doc/library/email.contentmanager.rst M Doc/library/email.errors.rst M Doc/library/email.generator.rst M Doc/library/email.headerregistry.rst M Doc/library/email.message.rst M Doc/library/email.mime.rst M Doc/library/email.parser.rst M Doc/library/email.policy.rst M Doc/library/exceptions.rst M Doc/library/sunau.rst M Doc/library/turtle.rst M Doc/library/xml.dom.pulldom.rst M Doc/reference/expressions.rst M Lib/email/architecture.rst Log Message: ----------- Fix typos in multiple `.rst` files (#1668) Commit: d896985bb2de49046f9b6879e906d1e4db255e23 https://github.com/python/cpython/commit/d896985bb2de49046f9b6879e906d1e4db2... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-05-20 (Sat, 20 May 2017) Changed paths: M Lib/test/test_class.py M Misc/NEWS M Objects/typeobject.c Log Message: ----------- bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. (#1652) Based on patch by Eryk Sun. Commit: 763557eac06ba60d7c5133e4f80df8870d8f917e https://github.com/python/cpython/commit/763557eac06ba60d7c5133e4f80df8870d8... Author: csabella <chekat2@gmail.com> Date: 2017-05-20 (Sat, 20 May 2017) Changed paths: M Doc/reference/simple_stmts.rst M Misc/ACKS Log Message: ----------- bpo-17188: DOC: Document 'from None' in raise statement (#1671) Original patch by Dennis Mårtensson. Commit: 3ccc17c058289b9f139b8e7d6aa8f3ed8dd92692 https://github.com/python/cpython/commit/3ccc17c058289b9f139b8e7d6aa8f3ed8dd... Author: Giampaolo Rodola <g.rodola@gmail.com> Date: 2017-05-20 (Sat, 20 May 2017) Changed paths: R .codecov.yml M .github/CONTRIBUTING.rst A .github/codecov.yml R .hgtouch M .mention-bot M .travis.yml M Doc/c-api/exceptions.rst M Doc/c-api/slice.rst M Doc/extending/newtypes.rst M Doc/howto/functional.rst M Doc/howto/logging-cookbook.rst M Doc/howto/urllib2.rst M Doc/library/binascii.rst M Doc/library/cgi.rst M Doc/library/cgitb.rst M Doc/library/cmath.rst M Doc/library/cmd.rst M Doc/library/ctypes.rst M Doc/library/datetime.rst M Doc/library/doctest.rst M Doc/library/email.compat32-message.rst M Doc/library/email.contentmanager.rst M Doc/library/email.errors.rst M Doc/library/email.generator.rst M Doc/library/email.headerregistry.rst M Doc/library/email.message.rst M Doc/library/email.mime.rst M Doc/library/email.parser.rst M Doc/library/email.policy.rst M Doc/library/exceptions.rst M Doc/library/fpectl.rst M Doc/library/logging.rst M Doc/library/macpath.rst M Doc/library/math.rst M Doc/library/mimetypes.rst M Doc/library/pdb.rst M Doc/library/plistlib.rst M Doc/library/profile.rst M Doc/library/pyexpat.rst M Doc/library/re.rst M Doc/library/selectors.rst M Doc/library/shutil.rst M Doc/library/ssl.rst M Doc/library/stdtypes.rst M Doc/library/sunau.rst M Doc/library/sysconfig.rst M Doc/library/turtle.rst M Doc/library/unicodedata.rst M Doc/library/urllib.parse.rst M Doc/library/uu.rst M Doc/library/xml.dom.minidom.rst M Doc/library/xml.dom.pulldom.rst M Doc/library/xml.etree.elementtree.rst M Doc/reference/datamodel.rst M Doc/reference/expressions.rst M Doc/reference/import.rst M Doc/reference/simple_stmts.rst M Doc/tools/susp-ignored.csv M Doc/tutorial/classes.rst M Doc/tutorial/controlflow.rst M Doc/tutorial/datastructures.rst M Doc/tutorial/inputoutput.rst M Doc/using/cmdline.rst M Doc/whatsnew/3.6.rst M Doc/whatsnew/3.7.rst M Include/object.h M Lib/_weakrefset.py M Lib/asyncio/tasks.py M Lib/bdb.py M Lib/cgi.py M Lib/code.py M Lib/distutils/msvc9compiler.py M Lib/distutils/sysconfig.py M Lib/distutils/tests/test_build_ext.py M Lib/doctest.py M Lib/email/architecture.rst M Lib/email/headerregistry.py M Lib/http/client.py M Lib/http/server.py M Lib/idlelib/idle_test/test_textview.py M Lib/idlelib/pyshell.py M Lib/idlelib/textview.py M Lib/imaplib.py M Lib/inspect.py M Lib/logging/config.py M Lib/macpath.py M Lib/multiprocessing/context.py M Lib/multiprocessing/forkserver.py M Lib/multiprocessing/queues.py M Lib/multiprocessing/sharedctypes.py M Lib/pathlib.py M Lib/plistlib.py M Lib/poplib.py M Lib/profile.py M Lib/pstats.py M Lib/re.py M Lib/shutil.py M Lib/sre_compile.py M Lib/sre_constants.py M Lib/sre_parse.py M Lib/symtable.py M Lib/tabnanny.py M Lib/test/_test_multiprocessing.py M Lib/test/eintrdata/eintr_tester.py M Lib/test/libregrtest/cmdline.py M Lib/test/libregrtest/main.py M Lib/test/libregrtest/runtest_mp.py M Lib/test/test_asyncio/test_events.py M Lib/test/test_asyncio/test_tasks.py M Lib/test/test_binascii.py M Lib/test/test_capi.py M Lib/test/test_cgi.py M Lib/test/test_class.py M Lib/test/test_codecencodings_cn.py M Lib/test/test_generators.py M Lib/test/test_import/__init__.py A Lib/test/test_import/data/circular_imports/binding.py A Lib/test/test_import/data/circular_imports/binding2.py M Lib/test/test_inspect.py M Lib/test/test_isinstance.py M Lib/test/test_macpath.py M Lib/test/test_multiprocessing_main_handling.py M Lib/test/test_plistlib.py M Lib/test/test_random.py M Lib/test/test_re.py M Lib/test/test_regrtest.py M Lib/test/test_sax.py M Lib/test/test_shutil.py M Lib/test/test_site.py M Lib/test/test_socket.py M Lib/test/test_ssl.py M Lib/test/test_thread.py M Lib/test/test_threading.py M Lib/test/test_typing.py M Lib/test/test_urllibnet.py M Lib/test/test_uu.py M Lib/tokenize.py M Lib/trace.py M Lib/traceback.py M Lib/turtle.py M Lib/turtledemo/wikipedia.py M Lib/typing.py M Lib/unittest/test/test_assertions.py M Lib/urllib/parse.py M Lib/urllib/request.py M Lib/uu.py M Lib/xml/sax/expatreader.py M Lib/zipfile.py M Mac/BuildScript/build-installer.py M Makefile.pre.in M Misc/ACKS M Misc/NEWS M Modules/_asynciomodule.c M Modules/_io/fileio.c M Modules/_json.c M Modules/_sre.c M Modules/_struct.c M Modules/_testcapimodule.c M Modules/binascii.c M Modules/cjkcodecs/_codecs_cn.c M Modules/clinic/_sre.c.h M Modules/clinic/binascii.c.h M Modules/signalmodule.c M Modules/socketmodule.c M Modules/sre_constants.h M Modules/sre_lib.h M Objects/object.c M Objects/sliceobject.c M Objects/typeobject.c M PC/launcher.c M PCbuild/_overlapped.vcxproj M PCbuild/build.bat A PCbuild/fix_encoding.py A PCbuild/lib.pyproj M PCbuild/pcbuild.sln M Python/ceval.c M Python/compile.c M Python/pylifecycle.c M Python/thread.c R Python/thread_foobar.h M Tools/gdb/libpython.py R Tools/hg/hgtouch.py M Tools/scripts/byext.py M Tools/unicode/makeunicodedata.py M configure M configure.ac Log Message: ----------- Merge branch 'master' into selectors-refactoring Commit: a56080d46ba3b36c5d686a323c5a4c65f34d6b12 https://github.com/python/cpython/commit/a56080d46ba3b36c5d686a323c5a4c65f34... Author: Giampaolo Rodola <g.rodola@gmail.com> Date: 2017-05-20 (Sat, 20 May 2017) Changed paths: M Lib/selectors.py Log Message: ----------- have all classes except SelectSelector a _selector attribute Commit: 27803ad0ab1ba5f3fd8251349c8252e1fcc8c7f6 https://github.com/python/cpython/commit/27803ad0ab1ba5f3fd8251349c8252e1fcc... Author: Giampaolo Rodola <g.rodola@gmail.com> Date: 2017-05-20 (Sat, 20 May 2017) Changed paths: M Lib/selectors.py Log Message: ----------- BaseException -> Exception Commit: 3b8e310a3026b643b814780295a401b44e98e314 https://github.com/python/cpython/commit/3b8e310a3026b643b814780295a401b44e9... Author: Giampaolo Rodola <g.rodola@gmail.com> Date: 2017-05-20 (Sat, 20 May 2017) Changed paths: M Lib/selectors.py Log Message: ----------- be explicit in defining a close() method only for selectors which have it Commit: 33f14c78eac138cf1c19942da5a52fb2b4621b99 https://github.com/python/cpython/commit/33f14c78eac138cf1c19942da5a52fb2b46... Author: Giampaolo Rodola <g.rodola@gmail.com> Date: 2017-05-20 (Sat, 20 May 2017) Changed paths: M Lib/selectors.py Log Message: ----------- fix AttributeError Compare: https://github.com/python/cpython/compare/0b46cfeb14fa...33f14c78eac1
participants (1)
-
GitHub