summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 3.6.7finalv3.6.7Ned Deily2018-10-206-11/+27
|
* bpo-34576: Revert doc change until it can be properly fixed (GH-9720)Ned Deily2018-10-201-8/+0
| | | | This reverts commit 3baee3b39765f5e8ec616b2b71b731b140486394.
* bpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850)Miss Islington (bot)2018-10-201-0/+3
| | | | | | | * Add News entry for the change in multiprocessing.reduction.recvfds made in GH-9613. (cherry picked from commit bd036d3d15fc1310ccc32a43a3296b8c157ac221) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* 3.6.7rc2v3.6.7rc2Ned Deily2018-10-1318-29/+144
|
* bpo-34370: Revert to using released Tk 8.6.8 with macOS installersNed Deily2018-10-132-3/+6
| | | | | | | | For 3.7.1rc1 and 3.6.7rc1 we used a pre-release development snapshot of Tk 8.6 to pick up some post-8.6.8 fixes for macOS. But the snapshot introduced at least one regression (bpo-34927). For rc2, revert to using the standard release 8.6.8 for now. This reverts commit adf493227f1efd5d6b34f46b854142bf3b5a411c.
* [3.6] bpo-34922: Fix integer overflow in the digest() and hexdigest() ↵Miss Islington (bot)2018-10-113-1/+21
| | | | | | | | | methods (GH-9751) (GH-9798) (GH-9801) for the SHAKE algorithm in the hashlib module. (cherry picked from commit 9b8c2e767643256202bb11456ba8665593b9a500) (cherry picked from commit 8b040e55395b37bdb8fd4ec85a270cfc9ec95307) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix a possible decref of a borrowed reference in symtable.c. (GH-9786)Miss Islington (bot)2018-10-111-2/+4
| | | | | (cherry picked from commit fc439d20de32b0ebccca79a96e31f83b85ec4eaf) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.6] bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346) ↵Serhiy Storchaka2018-10-1111-267/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-8581) (GH-9657) * help(hashlib) didn't work because of incorrect module name in blake2b and blake2s classes. * Constructors blake2*(), sha3_*(), shake_*() and keccak_*() incorrectly accepted keyword argument "string" for binary data, but documented as accepting the "data" keyword argument. Now this parameter is positional-only. * Keyword-only parameters in blake2b() and blake2s() were not documented as keyword-only. * Default value for some parameters of blake2b() and blake2s() was None, which is not acceptable value. * The length argument for shake_*.digest() was wrapped out to 32 bits. * The argument for shake_128.digest() and shake_128.hexdigest() was not positional-only as intended. * TypeError messages for incorrect arguments in all constructors sha3_*(), shake_*() and keccak_*() incorrectly referred to sha3_224. Also made the following enhancements: * More accurately specified input and result types for strings, bytes and bytes-like objects. * Unified positional parameter names for update() and constructors. * Improved formatting. (cherry picked from commit f1d36d8efaecd5c84cb35e35119b283f37d83c40) (cherry picked from commit 47957dab94a4efa2fee61c9a8193f78300950769)
* bpo-34576 warn users on security for http.server (GH-9720)Miss Islington (bot)2018-10-111-0/+8
| | | | | | | It was proposed to add an warning for http.server regarding security issues. The wording was provided at bpo-26005 by @orsenthil (cherry picked from commit 1d26c72e6a9c5b28b27c158f2f196217707dbb0f) Co-authored-by: Felipe Rodrigues <felipe@felipevr.com>
* [3.6] bpo-34769: Thread safety for _asyncgen_finalizer_hook(). (GH-9716) ↵twisteroid ambassador2018-10-103-4/+71
| | | | (GH-9792)
* [3.6] bpo-34906: Doc: Fix typos (2) (GH-9735)Stéphane Wirtel2018-10-1021-38/+38
| | | (cherry picked from commit 683281f536981da395575b5a07d6761118259fd2)
* bpo-23596: Add unit tests for the command line for the gzip module (GH-9775)Miss Islington (bot)2018-10-091-6/+93
| | | | | | Add unit tests for the command line for the gzip module (cherry picked from commit 84eec1199583bcb034e43337bcb8e2b876ebd269) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection ↵Miss Islington (bot)2018-10-092-1/+33
| | | | | | | | | | | | | | | | -O0 (GH-9656) When Python is built with the intel control-flow protection flags, -mcet -fcf-protection, gdb is not able to read the stack without actually jumping inside the function. This means an extra 'next' command is required to make the $pc (program counter) enter the function and make the stack of the function exposed to gdb. Co-Authored-By: Marcel Plch <gmarcel.plch@gmail.com> (cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287) (cherry picked from commit 79d21331e605fdc941f947621846b8563485aab6) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-32174: Let .chm document display non-ASCII characters properly (GH-9758)Miss Islington (bot)2018-10-083-1/+42
| | | | | | | | Let .chm document display non-ASCII characters properly Escape the `body` part of .chm source file to 7-bit ASCII, to fix visual effect on some MBCS Windows systems. (cherry picked from commit 6261ae9b01fb8429b779169f8de37ff567c144e8) Co-authored-by: animalize <animalize@users.noreply.github.com>
* bpo-34910: Ensure that PyObject_Print() always returns -1 on error. (GH-9733)Miss Islington (bot)2018-10-062-2/+5
| | | | | (cherry picked from commit ae62f015240c9162773341a9922794e6b960779d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.7] bpo-34282: Fix Enum._convert method shadowing members named _convert ↵Miss Islington (bot)2018-10-063-4/+24
| | | | | | (GH-9034) (GH-9229) * Fix Enum._convert shadowing members named _convert Co-authored-by: orlnub123 <orlnub123@gmail.com>
* bpo-34899: Fix a possible assertion failure due to int_from_bytes_impl() ↵Miss Islington (bot)2018-10-051-1/+1
| | | | | | | | | (GH-9705) The _PyLong_FromByteArray() call in int_from_bytes_impl() was unchecked. (cherry picked from commit 7bb9cd0a6766fd3e7b3c1e8f2315304ae192b34c) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726) (GH-9728)Miss Islington (bot)2018-10-051-1/+1
| | | | | (cherry picked from commit addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3) (cherry picked from commit d9212200fe8ddb55d73b8231869cfbb32635ba92)
* Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725) (GH-9727)Miss Islington (bot)2018-10-051-1/+1
| | | | | | Fixes warnings in test added in bpo-34603. (cherry picked from commit 4642d5f59828e774585e9895b538b24d71b9df8e) (cherry picked from commit 6bffe50f5fff8e8a40ae32c3e9c408622a15caf6)
* bpo-34902: Fixes VM image for Azure Pipelines build (GH-9719)Miss Islington (bot)2018-10-052-2/+2
| | | | | (cherry picked from commit 4313a293dae579f3406aa94508ff3803a79b0344) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* Fix a typo ssl.py docstring (GH-9697) (#9710)Miss Islington (bot)2018-10-051-1/+1
| | | | | (cherry picked from commit fc7d1b3b6a2be7061c000245bb1faa438e42f5d8) Co-authored-by: Matt Eaton <agnosticdev@gmail.com>
* bpo-34871: inspect: Don't pollute sys.modules (GH-9696) (GH-9702)Miss Islington (bot)2018-10-042-1/+3
| | | | | | https://bugs.python.org/issue34871 (cherry picked from commit 6f85b826b527e240551613aeec3118a5469e3a33) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* [3.6] bpo-34872: Fix self-cancellation in C implementation of asyncio.Task ↵Elvis Pranskevichus2018-10-033-3/+45
| | | | | | | | | | | | | | | | | | | | | | | | (GH-9679) (GH-9690) The C implementation of asyncio.Task currently fails to perform the cancellation cleanup correctly in the following scenario. async def task1(): async def task2(): await task3 # task3 is never cancelled asyncio.current_task().cancel() await asyncio.create_task(task2()) The actuall error is a hardcoded call to `future_cancel()` instead of calling the `cancel()` method of a future-like object. Thanks to Vladimir Matveev for noticing the code discrepancy and to Yury Selivanov for coming up with a pathological scenario. (cherry picked from commit 548ce9dedd2e90945970671d441436a6a91608ab) https://bugs.python.org/issue34872
* bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)Miss Islington (bot)2018-10-032-1/+3
| | | | | | | | formatfloat() was not checking if PyBytes_FromStringAndSize() failed, which could lead to a null pointer dereference in _PyBytes_FormatEx(). (cherry picked from commit 96c593279400693226d5a560c420ae0fcf1731b9) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Make it clear that the msg argument to ↵Miss Islington (bot)2018-10-031-3/+3
| | | | | | | | assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680) A follow up to be4e5b89204283a62e369439025f00362d0424f6. (cherry picked from commit e006b39a40e0cd6a90c68f1107853ea2ed0ed54d) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-34172: multiprocessing.Pool leaks resources after being deleted ↵Miss Islington (bot)2018-10-023-24/+57
| | | | | | | | (GH-8450) (GH-9677) Fix a reference issue inside multiprocessing.Pool that caused the pool to remain alive if it was deleted without being closed or terminated explicitly. (cherry picked from commit 97bfe8d3ebb0a54c8798f57555cb4152f9b2e1d0) Co-authored-by: tzickel <tzickel@users.noreply.github.com>
* Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)Miss Islington (bot)2018-10-021-1/+1
| | | | | (cherry picked from commit be4e5b89204283a62e369439025f00362d0424f6) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* closes bpo-34868: Improve error message with '_' is combined with an invalid ↵Miss Islington (bot)2018-10-022-8/+12
| | | | | | | type specifier. (GH-9666) (cherry picked from commit cbda8fc5d76b10bcbb92d927537576c229143836) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9664)Miss Islington (bot)2018-10-021-1/+1
| | | | | (cherry picked from commit 30534cc7172f36092e0002bb7df482edc0d539ce) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* bpo-34850: Replace is with == in idlelib.iomenu (GH-9649)Miss Islington (bot)2018-09-301-2/+2
| | | | | | Patch by Serhiy Storchaka (in PR GH-9642). (cherry picked from commit 5fa247d60d4f3f2b8c8ae8cb57363aca234344c2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123)Miss Islington (bot)2018-09-292-9/+10
| | | | | | Switch "list" with "iterable" to match with the implementation. (cherry picked from commit e45473e3ca31e5b78dc85cab575f5bb60d5b7f8f) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Fix incorrect error handling in _pickle.Unpickler.__init__() (GH-9630)Miss Islington (bot)2018-09-291-1/+1
| | | | | | _pickle.Unpickler.__init__() should return -1 if Pdata_New() fails, not 1. (cherry picked from commit 4b430e5f6954ef4b248e95bfb4087635dcdefc6d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly ↵Miss Islington (bot)2018-09-281-1/+1
| | | | | | | | | | | | | | | | | | | CMSG_SPACE (GH-9613) After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_multiprocessing_spawn and after examining similar failures in test_socket, some errors in the calculation of ancillary data buffers were found in multiprocessing.reduction. CMSG_LEN() can often be used as the buffer size for recvmsg() to receive a single item of ancillary data, but RFC 3542 requires portable applications to use CMSG_SPACE() and thus include space for padding, even when the item will be the last in the buffer. The failures we experience are due to the usage of CMSG_LEN() instead of CMSG_SPACE(). (cherry picked from commit 077061a7b24917aaf31057885c69919c5a553c88) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Fix tests in test_socket to use correctly CMSG_LEN (GH-9594)Miss Islington (bot)2018-09-271-2/+3
| | | | | | | | | | | | | | | | After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_socket that are using testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed out to be the reason the test started to fail. A close examination of the manpage for cmsg_space(3) reveals that the number of file descriptors needs to be taken into account when using CMSG_LEN(). This commit fixes tests in test_socket to use correctly CMSG_LEN, taking into account the number of FDs. (cherry picked from commit 7291108d88ea31d205da4db19d202d6cbffc6d93) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures ↵Miss Islington (bot)2018-09-272-4/+5
| | | | | | | | | | (GH-9599) Use a monotonic clock to compute timeouts in :meth:`Executor.map` and :func:`as_completed`, in order to prevent timeouts from deviating when the system clock is adjusted. This may not be sufficient on all systems. On POSIX for example, the actual waiting (e.g. in ``sem_timedwait``) is specified to rely on the CLOCK_REALTIME clock. (cherry picked from commit a94ee12c26aa8dd7dce01373779df8055aff765b) Co-authored-by: orlnub123 <orlnub123@gmail.com>
* Post release bumpNed Deily2018-09-272-3/+3
|
* Merge tag 'v3.6.7rc1' into 3.6Ned Deily2018-09-26116-284/+1193
|\
| * 3.6.7rc1v3.6.7rc1Ned Deily2018-09-26116-284/+1190
| |
| * bpo-34370: Update Tk 8.6 used with macOS installersNed Deily2018-09-262-3/+6
| | | | | | | | | | | | Have macOS 10.9+ installer builds for 3.7.1rc and 3.6.7rc use a development snapshot of Tk 8.6 (post-8.6.8) to mitigate certain scroller issues seen with IDLE and tkinter apps.
* | bpo-28655: Fix test_import.test_missing_source_legacy() (GH-9589)Victor Stinner2018-09-261-2/+5
| | | | | | | | | | | | | | | | bpo-28655, bpo-33053: test_import.test_missing_source_legacy() now removes the .pyc file that it creates to avoid leaking a file. Fix extract from commit d5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b. Co-Authored-By: Nick Coghlan <ncoghlan@gmail.com>
* | Clarify that Type[SomeTypeVar] is legal (GH-9585)Miss Islington (bot)2018-09-261-3/+6
| | | | | | | | | | | | | | | | | | Currently, the docs state that when doing `Type[X]`, X is only allowed to be a class, a union of classes, and Any. This pull request amends that sentence to clarify X may also be a typevar (or a union involving classes, Any, and TypeVars). (cherry picked from commit 130717fe58abb2ab9e7938207df0c130a2562747) Co-authored-by: Michael Lee <michael.lee.0x2a@gmail.com>
* | Drop confusing commented out code in pystrtod.c (GH-6072) (GH-9587)Victor Stinner2018-09-261-2/+0
| | | | | | | | | | | | | | | | | | Fix the following warning: Python/pystrtod.c: In function 'format_float_short': Python/pystrtod.c:1007:13: warning: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] strncpy(p, "ERR", 3); (cherry picked from commit 9fb84157595a385f15799e5d0729c1e1b0ba9d38)
* | [3.6] bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624) ↵Miss Islington (bot)2018-09-265-1/+62
|/ | | | | | | | | | | | | | | | (GH-9583) When dict subclass overrides order (`__iter__()`, `keys()`, and `items()`), `dict(o)` should use it instead of dict ordering. https://bugs.python.org/issue34320 (cherry picked from commit 2aaf98c16ae3070378de523a173e29644037d8bd) Co-authored-by: INADA Naoki <methane@users.noreply.github.com> https://bugs.python.org/issue34320
* bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573)Miss Islington (bot)2018-09-251-0/+7
| | | | | (cherry picked from commit 22ef31d0b4b497eda5e356528c3e1d29584d6757) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (GH-9567)Miss Islington (bot)2018-09-251-2/+11
| | | | | (cherry picked from commit dac712d51667227ce3862fc61be6a8094b1066fa) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33937: Catch ENOMEM error in test_socket (GH-9557)Miss Islington (bot)2018-09-251-2/+13
| | | | | | | | Fix test_socket.SendmsgSCTPStreamTest: catch ENOMEM error. testSendmsgTimeout() and testSendmsgDontWait() randomly fail on Travis CI with: "OSError: [Errno 12] Cannot allocate memory". (cherry picked from commit 46f40be8b907854deb81c6132b7cb038e9e5202a) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)Miss Islington (bot)2018-09-2511-29/+974
| | | | | (cherry picked from commit 604e7b9931f9e7881a2941816e538f5f15930db8) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-34770: Fix a possible null pointer dereference in pyshellext.cpp (GH-9497)Miss Islington (bot)2018-09-252-0/+6
| | | | | | | | | The GlobalLock() call in UpdateDropDescription() was not checked for failure. https://bugs.python.org/issue34770 (cherry picked from commit f6c8007a29b95b3ea3ca687a9b4924769a696328) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551)Miss Islington (bot)2018-09-251-2/+15
| | | | | (cherry picked from commit 16fba6231458cc1ff82db8695ee772b74131cc83) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] bpo-34582: Update syntax of Azure Pipelines builds (GH-9521) (GH-9528)Steve Dower2018-09-2418-508/+503
| | | https://bugs.python.org/issue34582