summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 3.7.4rc1v3.7.4rc1Ned Deily2019-06-18164-398/+1702
|
* Changelog fixups for 3.7.3rc1Ned Deily2019-06-182-1/+0
|
* Update macOS installer welcome and readme for 3.7.4Ned Deily2019-06-182-52/+79
|
* bpo-36231: Support building on macOS without /usr/include (GH-13773) (GH-14208)Ned Deily2019-06-182-7/+49
|
* bpo-34903: Document that some strptime formats only require 1 digit (GH-14149)Miss Islington (bot)2019-06-183-15/+56
| | | | | | | | | | For datetime.datetime.strptime(), the leading zero for some two-digit formats is optional. This adds a footnote to the strftime/strptime documentation to reflect this fact, and adds some tests to ensure that it is true. bpo-34903 (cherry picked from commit 6b9c204ee77a0de87d6f51a3d4547a18604cef9e) Co-authored-by: Mike Gleen <mike.gleen@gmail.com>
* bpo-35360: Update macOS installer to use SQLite 3.28.0 (GH-14180)Miss Islington (bot)2019-06-182-3/+4
| | | | | (cherry picked from commit d8f336fdc10decdd82d3bc81a63aea8be149c0c8) Co-authored-by: animalize <animalize@users.noreply.github.com>
* bpo-35031: also disable TLS 1.3 for test_start_tls_server_1 on macOS ↵Miss Islington (bot)2019-06-181-2/+4
| | | | | | | (GH-14188) (GH-14192) (cherry picked from commit a514f782b822bd7bca7c8d78be7bd53bc25c1908) Co-authored-by: Ned Deily <nad@python.org>
* bpo-34631: Updated OpenSSL to 1.1.1c in macOS installer (GH-14187)Miss Islington (bot)2019-06-182-3/+14
| | | | | (cherry picked from commit f3fb8393e3cbbdc0ec79e0fdefaadec6977e1491) Co-authored-by: Ned Deily <nad@python.org>
* bpo-5680: IDLE: Customize running a module (GH-13763)Miss Islington (bot)2019-06-1711-51/+211
| | | | | | The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu. (cherry picked from commit 201bc2d18b60adb05810d2a6ab396047bc527088) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-34631: Updated OpenSSL to 1.1.1c in Windows installer (GH-14163)Steve Dower2019-06-174-5/+6
|
* bpo-37321: Edit IDLE subprocess connection error messages. (GH-14170)Miss Islington (bot)2019-06-174-9/+16
| | | | | | Mainly, add a doc reference to message in pyshell. (cherry picked from commit 8fac1221097aaf6ac37ed9ea727ee7892085e183) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678)Miss Islington (bot)2019-06-175-29/+125
| | | | | | | Measure required height by quickly maximizing once per screen. A search for a better method failed. (cherry picked from commit 5bff3c86ab77e9d831b3cd19b45654c7eef22931) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-37194: Complete PyObject_CallXXX() docs (GH-14156) (GH-14158)Victor Stinner2019-06-171-6/+13
| | | | | | Mention explicitly that PyObject_CallXXX() functions raise an exception an failure. (cherry picked from commit 1ce2656f13e726b3b99d4c968926908cff1f460a)
* bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)Miss Islington (bot)2019-06-171-0/+6
| | | | | | | | bpo-35031, bpo-35998: Reintroduce workaround on Windows and FreeBSD in test_start_tls_server_1() of test_asyncio: disable TLS v1.3 on the client context. (cherry picked from commit c034b7824f5a7c50f2946ab3931633200e31d903) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) ↵Miss Islington (bot)2019-06-173-12/+16
| | | | | | | | | (GH-14141) On Windows, os.dup() no longer creates an inheritable fd when handling a character file. (cherry picked from commit 28fca0c422b425a6be43be31add0a5328c16b0b8) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)Miss Islington (bot)2019-06-172-1/+52
| | | | | (cherry picked from commit c5905f39bcf4ef895d42eede41bb5a2f071a501d) Co-authored-by: Joost Lek <vlabakje@gmail.com>
* bpo-28805: document METH_FASTCALL (GH-14079)Miss Islington (bot)2019-06-162-12/+52
| | | | | (cherry picked from commit 5600b5e1b24a3491e83f1b3038a7ea047a34c0bf) Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
* bpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)Miss Islington (bot)2019-06-161-2/+2
| | | | | | The patch needed for 2.7 should make the test more stable on 3.x also. (cherry picked from commit 66d47da86aff15be34adbec02596bb3188684c0d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Doc: Remove an ugly space before a dot. (GH-14123)Miss Islington (bot)2019-06-161-1/+1
| | | | | (cherry picked from commit 552951563cd5968d25e95306362e41f07d661a88) Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-35922: Fix RobotFileParser when robots.txt has no relevant crawl delay ↵Miss Islington (bot)2019-06-163-14/+26
| | | | | | | | or request rate (GH-11791) Co-Authored-By: Tal Einat <taleinat+github@gmail.com> (cherry picked from commit 8047e0e1c620f69cc21f9ca48b24bf2cdd5c3668) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
* [3.7] Doc: Add an optional obsolete header. (GH-13638). (GH-13655)Julien Palard2019-06-152-0/+20
| | | | | | * [3.7] Doc: Add an optional obsolete header. (GH-13638). (cherry picked from commit 46ed90dd014010703c7a3b2a61c4927644fa8210) Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099) ↵Miss Islington (bot)2019-06-151-9/+3
| | | | | | | (GH-14111) (cherry picked from commit 7a68f8c28bb78d957555a5001dac4df6345434a0) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Fix typo in Lib/concurrent/futures/thread.py (GH-13953)Miss Islington (bot)2019-06-152-2/+2
| | | | | (cherry picked from commit 552ace7498722f1add9f3782751b0d365f4c24c8) Co-authored-by: ubordignon <48903745+ubordignon@users.noreply.github.com>
* [3.7] bpo-37279: Fix asyncio sendfile support when extra data are sent in ↵Andrew Svetlov2019-06-153-3/+6
| | | | | | | fallback mode. (GH-14075). (GH-14103) (cherry picked from commit ef2152354f03a165c5e3adb53e2276934fabd50a) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* Update weakref.rst (GH-14098)Miss Islington (bot)2019-06-151-5/+6
| | | | | (cherry picked from commit f475729a714a9fb13672f8989c4abbafb783e09b) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* Use threadpool for reading from file in sendfile fallback mode (GH-14076)Miss Islington (bot)2019-06-152-1/+2
| | | | | (cherry picked from commit 0237265e8287141c40faa8719da3a2d21d511d0d) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on ↵Miss Islington (bot)2019-06-143-1/+20
| | | | | | | Windows (GH-14081) (cherry picked from commit 9765efcb39fc03d5b1abec3924388974470a8bd5) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() ↵Victor Stinner2019-06-142-18/+20
| | | | | (GH-14080) (GH-14086) (cherry picked from commit f0749da9a535375f05a2015e8960e8ae54877349)
* Update concurrent.futures.rst (GH-14061)Miss Islington (bot)2019-06-141-6/+8
| | | | | | | | | This PR adds missing details in the [`concurrent.futures`](https://docs.python.org/3/library/concurrent.futures.html) documentation: * the mention that `Future.cancel` also returns `False` if the call finished running; * the mention of the states for `Future` that did not complete: pending or running. (cherry picked from commit 431478d5d74d880692817323198b9605af972fa5) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* [3.7] bpo-37269: Correctly optimise conditionals with constant booleans ↵Pablo Galindo2019-06-143-0/+14
| | | | | | | | | | | | | (GH-14071) (GH-14073) Fix a regression introduced by af8646c8054d0f4180a2013383039b6a472f9698 that was causing code of the form: if True and False: do_something() to be optimized incorrectly, eliminating the block.. (cherry picked from commit 05f831865545b08c9a21cfb7773af58b76ec64cb) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-36779: time.tzname returns empty string on Windows if default cod… ↵Miss Islington (bot)2019-06-132-0/+16
| | | | | | | | | | | | | | | | | (GH-13073) Calling setlocale(LC_CTYPE, "") on a system where GetACP() returns CP_UTF8 results in empty strings in _tzname[]. This causes time.tzname to be an empty string. I have reported the bug to the UCRT team and will follow up, but it will take some time get a fix into production. In the meantime one possible workaround is to temporarily change the locale by calling setlocale(LC_CTYPE, "C") before calling _tzset and restore the current locale after if the GetACP() == CP_UTF8 or CP_UTF7 @zooba https://bugs.python.org/issue36779 (cherry picked from commit b4c7defe58695a6670a8fdeaef67a638bbb47e42) Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
* bpo-36402: Fix threading._shutdown() race condition (GH-13948) (GH-14050) ↵Miss Islington (bot)2019-06-133-12/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-14054) * bpo-36402: Fix threading._shutdown() race condition (GH-13948) Fix a race condition at Python shutdown when waiting for threads. Wait until the Python thread state of all non-daemon threads get deleted (join all non-daemon threads), rather than just wait until Python threads complete. * Add threading._shutdown_locks: set of Thread._tstate_lock locks of non-daemon threads used by _shutdown() to wait until all Python thread states get deleted. See Thread._set_tstate_lock(). * Add also threading._shutdown_locks_lock to protect access to threading._shutdown_locks. * Add test_finalization_shutdown() test. (cherry picked from commit 468e5fec8a2f534f1685d59da3ca4fad425c38dd) * bpo-36402: Fix threading.Thread._stop() (GH-14047) Remove the _tstate_lock from _shutdown_locks, don't remove None. (cherry picked from commit 6f75c873752a16a7ad8f35855b1e29f59d048e84) (cherry picked from commit e40a97a721d46307dfdc2b0322028ccded6eb571) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-35070: test_getgrouplist may fail on macOS if too many groups (GH-13071)Miss Islington (bot)2019-06-132-15/+19
| | | | | (cherry picked from commit 8725c83ed5ca8959195ad8326db99d564a921749) Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>
* bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. ↵Miss Islington (bot)2019-06-124-5/+25
| | | | | | | | (GH-11859) Escape ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) in Unicode strings. (cherry picked from commit 38ab7d4721b422547f7b46b9d68968863fa70573) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-29505: Fuzz json module, enforce size limit on int(x) fuzz (GH-13991)Miss Islington (bot)2019-06-1110-1/+171
| | | | | | | | * bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts. Contributed by by Ammar Askar for Google. (cherry picked from commit a6e190e94b47324f14e22a09200c68b722d55699) Co-authored-by: Ammar Askar <aaskar@google.com>
* bpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)Miss Islington (bot)2019-06-111-4/+4
| | | | | | Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly. (cherry picked from commit 405f648db7c44b07348582b5101d4716e0ce5ac3) Co-authored-by: Yao Zuo <laike9m@users.noreply.github.com>
* [3.7] bpo-36520: Email header folded incorrectly (GH-13608) (GH-13910)Abhilash Raj2019-06-113-0/+133
| | | | | | | | | | | | | | | | | | | | | | * [bpo-36520](https://bugs.python.org/issue36520): reset the encoded word offset when starting a new line during an email header folding operation * 📜🤖 Added by blurb_it. * [bpo-36520](https://bugs.python.org/issue36520): add an additional test case, and provide descriptive comments for the test_folding_with_utf8_encoding_* tests * [bpo-36520](https://bugs.python.org/issue36520): fix whitespace issue * [bpo-36520](https://bugs.python.org/issue36520): changes per reviewer request -- remove extraneous backslashes; add whitespace between terminating quotes and line-continuation backslashes; use "bpo-" instead of "issue GH-" in comments (cherry picked from commit f6713e84afc5addcfa8477dbdf2c027787f711c0) Co-authored-by: websurfer5 <49998481+websurfer5@users.noreply.github.com> https://bugs.python.org/issue36520
* Fix test_posix if RWF_HIPRI is defined but not preadv2. (GH-13980)Miss Islington (bot)2019-06-111-0/+2
| | | | | | If preadv2 is not available, preadv will raise NotImplementedError. (cherry picked from commit 44867bb9376e324493f0149ac8b3c33f23c9050d) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* closes bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)Miss Islington (bot)2019-06-111-2/+2
| | | | | | This test "works" if things are run in the right order, so it's better to use @skip than @expectedFailure here. (cherry picked from commit 910b3fcb01c29f18ffd53086e36cd2cb9e5fae55) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (GH-13971)Miss Islington (bot)2019-06-112-6/+34
| | | | | | | | If internal tasks weak set is changed by another thread during iteration. https://bugs.python.org/issue36607 (cherry picked from commit 65aa64fae89a24491aae84ba0329eb8f3c68c389) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* [3.7] bpo-37219: Remove erroneous optimization for differencing an empty set ↵Raymond Hettinger2019-06-113-8/+7
| | | | | | (GH-13965) (GH-13968)
* [3.7] bpo-37216: Fix version and filename in Mac using document (GH-13963)Makdon2019-06-111-2/+2
|
* closes bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing ↵Miss Islington (bot)2019-06-101-1/+1
| | | | | | | | | | | of pyexpat line in Setup. (GH-13064) When the line is uncommented, the equals character causes it to be incorrectly interpreted as a macro definition by makesetup. This results in invalid Makefile output. The expat code only requires XML_POOR_ENTROPY to be defined; the value is unnecessary. (cherry picked from commit 408a2ef1aceff1f4270c44552fa39ef93d9283e3) Co-authored-by: aaronpaulhurst <aaronpaulhurst@gmail.com>
* Stop using deprecated logging API in Sphinx suspicious checker (GH-9875)Miss Islington (bot)2019-06-081-4/+6
| | | | | (cherry picked from commit ee171a26c1169abfae534b08acc0d95c6e45a22a) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-37173: Show passed class in inspect.getfile error (GH-13861)Miss Islington (bot)2019-06-083-3/+22
| | | | | | | | | | | | | | | Currently, inspect.getfile(str) will report nonsense: ```pytb >>> inspect.getfile(str) TypeError: <module 'builtins' (built-in)> is a built-in class ``` This fixes that https://bugs.python.org/issue37173 (cherry picked from commit d407d2a7265f6102e51a1d62b3fd28b4f7a78d16) Co-authored-by: Philipp A <flying-sheep@web.de>
* bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)Miss Islington (bot)2019-06-082-2/+7
| | | | | | | | | Fix an unintended ValueError from :func:`subprocess.run` when checking for conflicting `input` and `stdin` or `capture_output` and `stdout` or `stderr` args when they were explicitly provided but with `None` values within a passed in `**kwargs` dict rather than as passed directly by name. (cherry picked from commit 8cc605acdda5aff250ab4c9b524a7560f90ca9f3) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
* bpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907)Miss Islington (bot)2019-06-081-0/+8
| | | | | (cherry picked from commit a15a7bcaea54e1845ab2abe27e6f583294cd715b) Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* [3.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() ↵Zackery Spytz2019-06-074-4/+29
| | | | | | | (GH-13860) (GH-13896) (cherry picked from commit dc2476500d91082f0c907772c83a044bf49af279) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Use assertEqual(). (#13886)Miss Islington (bot)2019-06-071-2/+2
|
* IDLE: Standardize naming convention for DummyEditwin in tests (GH-13876)Miss Islington (bot)2019-06-071-2/+2
| | | | | | * Change from Dummy_Editwin to DummyEditwin to match other tests. (cherry picked from commit 7f8a38a7c47823c17adab469fcb4f762f4e945b7) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>