summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 3.7.1finalv3.7.1Ned Deily2018-10-208-14/+34
|
* bpo-34576: Revert doc change until it can be properly fixed (GH-9720)Ned Deily2018-10-201-8/+0
| | | | This reverts commit 57038bcb24407abbbb46e6d278d0ab4b6ad25bbf.
* 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>
* bpo-34970: Protect tasks weak set manipulation in asyncio.all_tasks() ↵Miss Islington (bot)2018-10-202-2/+7
| | | | | | | | (GH-9837) (GH-9849) https://bugs.python.org/issue34970 (cherry picked from commit 97cf0828727ac2a269c89c5aa09570a69a22c83c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-34909: NEWS entry.Ned Deily2018-10-201-0/+2
|
* 3.7.1rc2v3.7.1rc2Ned Deily2018-10-1320-35/+166
|
* bpo-34370: Revert to using released Tk 8.6.8 with macOS installersNed Deily2018-10-132-55/+24
| | | | | | | | 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 d9cfe5ed2c2c61eeae915b76f5e10aadbbb28da6.
* bpo-34783: Disable test_nonexisting_script for macOS framework builds ↵Miss Islington (bot)2018-10-131-0/+4
| | | | | | | | | | | | | | (GH-9831) (GH-9832) With macOS framework builds, test case test_nonexisting_script in test_nonexisting_script fails because the test case assumes that the file name in sys.executable will appear in the error message. For macOS framework builds, sys.executable is the file name of the stub launcher and its file name bears no relationship to the file name of the actual python executable. For now, skip the test in this case. (cherry picked from commit f6c29a65e2a6da5c0014c868cf963c975b74e72b) Co-authored-by: Ned Deily <nad@python.org>
* bpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796)Miss Islington (bot)2018-10-121-6/+8
| | | | | (cherry picked from commit 4505f65ae7807f2420ed14d4f060e7cd5c4039d3) Co-authored-by: Gus Goulart <augusto@goulart.me>
* bpo-34900: Make TestCase.debug() work with subtests (GH-9707)Miss Islington (bot)2018-10-123-1/+17
| | | | | (cherry picked from commit da2bf9f66d0c95b988c5d87646d168f65499b316) Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
* bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. ↵Miss Islington (bot)2018-10-121-0/+1
| | | | | | | (GH-8052) (cherry picked from commit 65d2f8c044bf597685ba72f66cbcc6b3f7a3ee9c) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Fix an incorrect check in compiler_try_except(). (GH-9810)Miss Islington (bot)2018-10-121-1/+2
| | | | | (cherry picked from commit 53ebf4b0709f431b7262aa5daccef7eafde7383e) Co-authored-by: Zackery Spytz <zspytz@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.7] bpo-34922: Fix integer overflow in the digest() and hexdigest() ↵Serhiy Storchaka2018-10-113-1/+21
| | | | | | | methods (GH-9751) (GH-9798) for the SHAKE algorithm in the hashlib module. (cherry picked from commit 9b8c2e767643256202bb11456ba8665593b9a500)
* 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.7] bpo-34906: Doc: Fix typos (2) (GH-9735)Stéphane Wirtel2018-10-1028-53/+53
| | | (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-34769: Thread safety for _asyncgen_finalizer_hook(). (GH-9716)Miss Islington (bot)2018-10-093-4/+71
| | | | | (cherry picked from commit c880ffe7d2ce2fedb1831918c8a36e3623e0fb76) Co-authored-by: twisteroid ambassador <twisteroidambassador@users.noreply.github.com>
* 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-34901: add isolated (-I) flag to sys.flags (GH-9708)Miss Islington (bot)2018-10-071-0/+4
| | | | | | https://bugs.python.org/issue34901 (cherry picked from commit 656d52dbfde3223cd2a3525d652b6cccb02fa991) Co-authored-by: Danish Prakash <grafitykoncept@gmail.com>
* bpo-6721: Hold logging locks across fork() (GH-4071) (#9291)Miss Islington (bot)2018-10-073-0/+119
| | | | | | | | | | | | bpo-6721: When os.fork() was called while another thread holds a logging lock, the child process may deadlock when it tries to log. This fixes that by acquiring all logging locks before fork and releasing them afterwards. A regression test that fails before this change is included. Within the new unittest itself: There is a small _potential_ due to mixing of fork and a thread in the child process if the parent's thread happened to hold a non-reentrant library call lock (malloc?) when the os.fork() happens. buildbots and time will tell if this actually manifests itself in this test or not. :/ A functionality test that avoids that would be a challenge. An alternate test that isn't trying to produce the deadlock itself but just checking that the release and acquire calls are made would be the next best alternative if so. (cherry picked from commit 19003841e965bbf56fd06824d6093620c1b66f9e) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
* bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) (GH-9581)Miss Islington (bot)2018-10-074-5/+23
| | | | | (cherry picked from commit d345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* Correct grammar mistake in re.rst. (GH-9745)Miss Islington (bot)2018-10-061-1/+1
| | | | | (cherry picked from commit 7dfbd4967121ef6ecabe3fd53a430fd949f405fd) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34909: keep searching mixins until base class is found (GH-9737) (GH-9738)Miss Islington (bot)2018-10-062-3/+22
| | | (cherry picked from commit cd45385ffad8910293e5659cfe7ab036e70613b7)
* 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-34158: Documentation UTC offset update (GH-8377) (GH-9732)Miss Islington (bot)2018-10-061-20/+21
| | | | | | | | | | | | | | | | | | | | | | | * Documentation of UTC offset update Since changes in the UTC offset that allows sub-minute offsets, the documentation needs update: - "%z" format code documentation update Karthikeyan Singaravelan commented on bugs.python.org: Added as part of 018d353c1c8c87767d2335cd884017c2ce12e045 and a fix regarding duplicate words for that part was added at bac2d5ba30339298db7d4caa9c8cd31d807cf081. Relevant format string at https://github.com/python/cpython/pull/2896/filesGH-diff-25e2d173c84057d069b7890450714eddR214. Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/filesGH-diff-acc40bec51c7de832de3361db3edae52R309. Table at https://docs.python.org/3.7/library/datetime.htmlGH-strftime-and-strptime-behavior could also be updated with microseconds being optional in the second column %z | UTC offset in the form ±HHMM[SS] (empty string if the object is naive). | (empty), +0000, -0400, +1030 - isoformat documentation update According to me, needs confirmation: Relevant format string at https://github.com/python/cpython/pull/4699/filesGH-diff-25e2d173c84057d069b7890450714eddR176 Relevant test case at https://github.com/python/cpython/pull/4699/filesGH-diff-25e2d173c84057d069b7890450714edd * From Martin Panter: some style improvment; From @pganssle: using f for fractional part of seconds in all file. (cherry picked from commit 92878829c31ab2fc71c60555ce87a5f6cbc876f0) Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
* [3.7] Make it clear that the msg argument to ↵Miss Islington (bot)2018-10-061-3/+3
| | | | | | | | assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680) (GH-9681) A follow up to be4e5b89204283a62e369439025f00362d0424f6. (cherry picked from commit e006b39a40e0cd6a90c68f1107853ea2ed0ed54d) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Fix markup for xml.sax in 3.7.rst (GH-9604)Andrés Delfino2018-10-061-1/+1
|
* Clarify that AsyncExitStack works with coroutine functions (GH-9405) (GH-9408)Miss Islington (bot)2018-10-061-2/+2
| | | | | | | | | | | | | | | The docs were ambiguous about whether you pass in a coroutine function or a coroutine object, e.g. is it: aestack.push_async_exit(some_async_func) or aestack.push_async_exit(some_async_func()) (It's the first one.) (cherry picked from commit a3c88ef12c7b8993912750b56a1e095652fe47c0) Co-authored-by: Nathaniel J. Smith <njs@pobox.com>
* bpo-34565: Change a PC/launcher.c comment to accurately describe valid major ↵Miss Islington (bot)2018-10-061-2/+2
| | | | | | | versions. (GH-9037) (GH-9065) (cherry picked from commit 3876af4f7c2ef87db6d2d83efc229955968926dd) Co-authored-by: Brendan Gerrity <brerrity@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>
* [3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726)Serhiy Storchaka2018-10-051-1/+1
| | | | (cherry picked from commit addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3)
* Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725)Serhiy Storchaka2018-10-051-1/+1
| | | | | Fixes warnings in test added in bpo-34603. (cherry picked from commit 4642d5f59828e774585e9895b538b24d71b9df8e)
* 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>
* bpo-34825: Add more entries to os to pathlib reference table (GH-9608) (#9717)Miss Islington (bot)2018-10-051-20/+27
| | | | | | | | | | | | | | | | | | | | The added functions are as below : | os module | Pathlib | | ------------- | ------------- | | os.chmod | Path.chmod | | os.mkdir | Path.mkdir | | os.rename | Path.rename | | os.replace | Path.replace | | os.rmdir | Path.rmdir | | os.remove, os.unlink | Path.unlink | | os.path.samefile | Path.samefile | Thanks https://bugs.python.org/issue34825 (cherry picked from commit 6f9c55d1c0bb399911ded00bb6b3e6f43a514ea2) Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
* bpo-34906: Doc: Fix typos (GH-9712)Miss Islington (bot)2018-10-056-6/+6
| | | | | (cherry picked from commit 07fbbfde1b300369b4f8d1cfb80045fbb23b7091) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* Fix a typo ssl.py docstring (GH-9697) (GH-9709)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) (#9701)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.7] bpo-34872: Fix self-cancellation in C implementation of asyncio.Task ↵Elvis Pranskevichus2018-10-033-3/+45
| | | | | | | | | | | | | | | | | | | | | | | | | (GH-9679) (GH-9691) 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) Co-authored-by: Elvis Pranskevichus <elvis@magic.io> 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>
* bpo-34172: multiprocessing.Pool leaks resources after being deleted ↵Miss Islington (bot)2018-10-023-24/+57
| | | | | | | | (GH-8450) (GH-9676) 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-9663)Miss Islington (bot)2018-10-021-1/+1
| | | | | (cherry picked from commit 30534cc7172f36092e0002bb7df482edc0d539ce) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (#9654)Miss Islington (bot)2018-10-011-0/+3
| | | | | (cherry picked from commit cd602b8af2d14ff686261eeb18b80f718bb16550) Co-authored-by: Hrvoje Nikšić <hniksic@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-34854: Fix compiling string annotations containing lambdas. (GH-9645)Miss Islington (bot)2018-09-303-5/+11
| | | | | | | | | | | | * Compiling a string annotation containing a lambda with keyword-only argument without default value caused a crash. * Remove the final "*" (it is incorrect syntax) in the representation of lambda without *args and keyword-only arguments when compile from AST. * Improve the representation of lambda without arguments. (cherry picked from commit 2a2940e5c3e6d92f4fac5e9d361a1e224bb2f12e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* 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 astuple in dataclasses documentation (GH-9631)Miss Islington (bot)2018-09-291-1/+1
| | | | | (cherry picked from commit 508d8205121868ef24cca99f1f952558b1ff2f2e) Co-authored-by: 방성범 (Bang Seongbeom) <bangseongbeom@hotmail.com>