summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480)Miss Islington (bot)2020-04-225-16/+79
| | | | | | | | | | It is possible to use either '-isysroot /some/path' (with a space) or '-isysroot/some/path' (no space in between). Support both forms in places where special handling of -isysroot is done, rather than just the first form. Co-authored-by: Ned Deily <nad@python.org> (cherry picked from commit b310700976524b4b99ee319c947ca40468716fc9) Co-authored-by: Joshua Root <jmr@macports.org>
* bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19654)Victor Stinner2020-04-223-6/+35
| | | | | Fix the Windows implementation of os.waitpid() for exit code larger than "INT_MAX >> 8". The exit status is now interpreted as an unsigned number.
* bpo-38439: Add 256px IDLE icon (GH-17473)Miss Islington (bot)2020-04-226-2/+19
| | | | | | Icon author: Andrew Clover, bpo-1490384 (cherry picked from commit 3a69f3caeeaea57048ed3bc3051e16854b9a4cd6) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642)Miss Islington (bot)2020-04-222-3/+4
| | | | | (cherry picked from commit 783a673f23c5e9ffafe12fe172e119dc0fa2abda) Co-authored-by: Ned Deily <nad@python.org>
* Small improvements to the recipes and examples. (GH-19635) (GH-19638)Miss Islington (bot)2020-04-211-30/+26
| | | | | | | * Add underscores to long numbers to improve readability * Use bigger dataset in the bootstrapping example * Convert single-server queue example to more useful multi-server queue (cherry picked from commit d3a8d616faf3364b22fde18dce8c168de9368146)
* bpo-39942:Fix failure in `TypeVar` when missing `__name__` (GH-19616)Miss Islington (bot)2020-04-203-1/+13
| | | | | | https://bugs.python.org/issue39942 (cherry picked from commit a25a04fea5446b1712cde0cff556574be139285a) Co-authored-by: HongWeipeng <hongweichen8888@sina.com>
* [3.8] bpo-40330: Fix utf-8 size check in ShareableList (GH-19606) (GH-19625)Antoine Pitrou2020-04-203-6/+22
| | | | | | | | The item size must be checked after encoding to bytes, not before. Automerge-Triggered-By: @pitrou. (cherry picked from commit eba9f6155df59c9beed97fb5764c9f01dd941af0) Co-authored-by: Antoine Pitrou <antoine@python.org>
* bpo-40260: Revert breaking changes made in modulefinder (GH-19595)Miss Islington (bot)2020-04-202-12/+24
| | | | | (cherry picked from commit 9b0b5d2baebd0b6a545317200c313a6a7408731e) Co-authored-by: Barry <barry@barrys-emacs.org>
* Fix typo in Lib/tracepack.py (GH-19605)Miss Islington (bot)2020-04-201-1/+1
| | | | | | Typo fix: "emites" -> "emit". (cherry picked from commit df8913f7c48d267efd662e8ffd9496595115eee8) Co-authored-by: Galden <wudenggang0@163.com>
* bpo-39285: Clarify example for PurePath.match (GH-19458)Miss Islington (bot)2020-04-191-1/+3
| | | | | | | | | | | | | | Fixes Issue39285 The example incorrectly returned True for match. Furthermore the example is ambiguous in its usage of PureWindowsPath. Windows is case-insensitve, however the underlying match functionality utilizes fnmatch.fnmatchcase. Automerge-Triggered-By: @pitrou (cherry picked from commit c12375aa0b838d34067efa3f1b9a1fbc632d0413) Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
* bpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)Miss Islington (bot)2020-04-182-3/+5
| | | | | | Automerge-Triggered-By: @pitrou (cherry picked from commit 482259d0dcf27714a84cf56b93977320bea7e093) Co-authored-by: Furkan Önder <furkantahaonder@gmail.com>
* [3.8] bpo-40179: Fix translation of #elif in Argument Clinic (GH-19364) ↵Serhiy Storchaka2020-04-184-24/+125
| | | | | | | (GH-19583) Co-authored-by: Ammar Askar <ammar@ammaraskar.com> (cherry picked from commit 12446e6a605f066d837d3a595d0a73e4f3b43b65)
* Fix two typos in multiprocessing (GH-19571) (GH-19578)Miss Islington (bot)2020-04-181-2/+2
| | | | | | | (cherry picked from commit c606624af8d4cb3b4a052fb263bb983b3f87585b) Co-authored-by: Galden <wudenggang0@163.com> Co-authored-by: Galden <wudenggang0@163.com>
* bpo-40287: Fix SpooledTemporaryFile.seek() return value (GH-19540)Miss Islington (bot)2020-04-173-3/+6
| | | | | | It has not returned the file position after the seek. (cherry picked from commit 485e715cb1ff92bc9882cd51ec32589f9cb30503) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-40294: Fix _asyncio when module is loaded/unloaded multiple times (GH-19542)Miss Islington (bot)2020-04-171-0/+2
| | | | | (cherry picked from commit a75e730075cd25be1143e6183006f3b1d61bb80f) Co-authored-by: Jeffrey Quesnelle <jquesnelle@gmail.com>
* Fix parameter names in assertIn() docs (GH-18829)Miss Islington (bot)2020-04-171-3/+3
| | | | | | The names "member" and "container" for the arguments are also used in the module and shown with the help() function, and are immediately understandable in this context, contrary to "first" and "second". (cherry picked from commit a388bbd3f129364c39843f63e92f08bc53c71905) Co-authored-by: Christoph Zwerschke <cito@online.de>
* bpo-39793: use the same domain on make_msgid tests (GH-18698) (GH-19554)Miss Islington (bot)2020-04-162-4/+7
| | | | | | (cherry picked from commit 5565c30f0b25996a0e73477fc0e1e1aced52b926) Co-authored-by: Batuhan Taşkaya <batuhanosmantaskaya@gmail.com>
* [3.8] bpo-39667: Sync zipp 3.0 (GH-18540) (GH-18701)Miss Islington (bot)2020-04-154-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | * bpo-39667: Sync zipp 3.0 (GH-18540) * bpo-39667: Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0 * 📜🤖 Added by blurb_it. * Update docs for new zipfile.Path.open * Rely on dict, faster than OrderedDict. * Syntax edits on docs Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 0aeab5c4381f0cc11479362af2533b3a391312ac) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * Clarify the change in behavior with a couple of workaround options. * Restore API compatibility while backporting performance improvements. Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-40260: Update modulefinder to use io.open_code() and respect coding ↵Miss Islington (bot)2020-04-143-21/+75
| | | | | | | comments (GH-19488) (cherry picked from commit d42e5820631cd66ee1eab8f610d4b58f3dfdd81c) Co-authored-by: Barry <barry@barrys-emacs.org>
* bpo-32033: Fix test_pwd failures on Android (GH-19502)Miss Islington (bot)2020-04-141-1/+1
| | | | | (cherry picked from commit 96515e9f6785328c52ebc5d4ce60e0087a9adc2d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.8] Update libregrtest from master (GH-19516)Victor Stinner2020-04-149-32/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-37531: regrtest now catchs ProcessLookupError (GH-16827) Fix a warning on a race condition on TestWorkerProcess.kill(): ignore silently ProcessLookupError rather than logging an useless warning. (cherry picked from commit a661392f8fb5ac4fc095aa1845d1eb7a25c4e9be) * bpo-38502: regrtest uses process groups if available (GH-16829) test.regrtest now uses process groups in the multiprocessing mode (-jN command line option) if process groups are available: if os.setsid() and os.killpg() functions are available. (cherry picked from commit ecb035cd14c11521276343397151929a94018a22) * bpo-37957: Allow regrtest to receive a file with test (and subtests) to ignore (GH-16989) When building Python in some uncommon platforms there are some known tests that will fail. Right now, the test suite has the ability to ignore entire tests using the -x option and to receive a filter file using the --matchfile filter. The problem with the --matchfile option is that it receives a file with patterns to accept and when you want to ignore a couple of tests and subtests, is too cumbersome to lists ALL tests that are not the ones that you want to accept and he problem with -x is that is not easy to ignore just a subtests that fail and the whole test needs to be ignored. For these reasons, add a new option to allow to ignore a list of test and subtests for these situations. (cherry picked from commit e0cd8aa70a3ce19c3d3712568940aa0cbd9aa97b) * regrtest: log timeout at startup (GH-19514) Reduce also worker timeout. (cherry picked from commit 4cf65a630a8d45bad3fe5cdc4c2632ec64e7ba27) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling ↵Miss Islington (bot)2020-04-142-1252/+1256
| | | | | | | against old OpenSSL. (GH-19506) (cherry picked from commit 584a3cfda4d7a65ea0c1ea1ee541378bb7be46ca) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.8] Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454) (GH-19495)Miss Islington (bot)2020-04-131-3/+3
| | | | | | | | (cherry picked from commit 85dd6bb1f61f7edcd6ac0b640a98644531690a0e) Co-authored-by: laike9m <laike9m@users.noreply.github.com> Automerge-Triggered-By: @zhangyangyu
* closes bpo-39953: Generate ifdefs around library code definitions. (GH-19490)Miss Islington (bot)2020-04-122-1/+55
| | | | | (cherry picked from commit 909b87d2bb3d6330d39c48e43f7f50f4d086cc41) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-31758: Prevent crashes when using an uninitialized ↵Miss Islington (bot)2020-04-123-0/+41
| | | | | _elementtree.XMLParser object (GH-3997) (GH-19485) (cherry picked from commit 402e1cdb132f384e4dcde7a3d7ec7ea1fc7ab527)
* [3.8] bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351) ↵Serhiy Storchaka2020-04-122-46/+27
| | | | | | | | | (GH-19483) Patcher's __exit__() is now never called if its __enter__() is failed. Returning true from __exit__() silences now the exception. (cherry picked from commit 4b222c9491d1700e9bdd98e6889b8d0ea1c7321e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* closes bpo-39953: Update OpenSSL error codes table. (GH-19082)Miss Islington (bot)2020-04-113-388/+4719
| | | | | | I updated the error codes using the OpenSSL 1.1.1f source tree. (cherry picked from commit 3e0dd3730b5eff7e9ae6fb921aa77cd26efc9e3a) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-38501: Add a warning section to multiprocessing.Pool docs about resource ↵Miss Islington (bot)2020-04-111-1/+12
| | | | | | | managing (GH-19466) (cherry picked from commit 7ec43a73092d43c6c95e7dd2669f49d54b57966f) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-40197: Better describe the benchmark results table (GH-19386)Miss Islington (bot)2020-04-101-1/+7
| | | | | (cherry picked from commit c63629e7c09da80a6b7d0253d04a9b3f57f88eff) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* Remove extraneous ')' in abstract.h (GH-19146) (#19451)Miss Islington (bot)2020-04-091-1/+1
| | | | | | (cherry picked from commit ac2cfe6631b77a2005d8f16f034dbb6154f04ab2) Co-authored-by: Jimmy Yang <codingExpert123@gmail.com>
* bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler ↵Victor Stinner2020-04-091-2/+1
| | | | | | | is xlc on AIX (GH-19225) (GH-19444) (cherry picked from commit 76db37b1d37a9daadd9e5b320f2d5a53cd1352ec) Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
* bpo-40214: Temporarily disable a ctypes test (GH-19404)Miss Islington (bot)2020-04-091-2/+5
| | | | | | | | Only one particular sub-test of ctypes.test.test_loading.test_load_dll_with_flags is disabled, which caused failures on Azure Pipelines CI. (cherry picked from commit f407e209c1e35b64835f73e7e7ca23e33817e9fe) Co-authored-by: Zachary Ware <zach@python.org>
* bpo-40204: Pin Sphinx version to 1.8.2 in Doc/Makefile (GH-19442)Victor Stinner2020-04-082-1/+2
|
* bpo-40089: Fix threading._after_fork() (GH-19191) (GH-19194)Miss Islington (bot)2020-04-072-1/+12
| | | | | | | | If fork was not called by a thread spawned by threading.Thread, threading._after_fork() now creates a _MainThread instance for _main_thread, instead of a _DummyThread instance. (cherry picked from commit d8ff44ce4cd6f3ec0fab5fccda6bf14afcb25c30) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-40196: Fix a bug in the symtable when reporting inspecting global ↵Miss Islington (bot)2020-04-063-2/+8
| | | | | | | variables (GH-19391) (GH-19394) (cherry picked from commit 799d7d61a91eb0ad3256ef9a45a90029cef93b7c) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Fix misinformation about NaN != NaN comparison (GH-19357) (GH-19383)Miss Islington (bot)2020-04-051-2/+3
| | | | | | (cherry picked from commit 810f68f1282c917fc1ad6af540a9f08524dfe310) Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
* [3.8] closes bpo-40184: Only define pysiphash if the hash algorithm is ↵Benjamin Peterson2020-04-041-7/+7
| | | | | | | SIPHASH24. (GH-19373) (cherry picked from commit 1b21573) Co-authored-by: Batuhan Taşkaya <batuhanosmantaskaya@gmail.com>
* bpo-36320: Use the deprecated-removed directive for _field_types (GH-19370)Serhiy Storchaka2020-04-041-1/+1
|
* bpo-40164: Update Windows to OpenSSL 1.1.1f (GH-19359)Steve Dower2020-04-043-4/+5
|
* bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152)Miss Islington (bot)2020-04-044-15/+32
| | | | | | Inspect.signature failed on the test case because its isinstance call raised. (cherry picked from commit 52013e5b6d5ca32eef5a3d65ecdf7db89cefc2fd) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-40158: Fix CPython MSBuild Properties in NuGet Package (GH-19343)Miss Islington (bot)2020-04-032-2/+2
| | | | | | Fix default Python home path relative to the NuGet package (cherry picked from commit 6e623ff9d251e0ce86e9b18a01bfd6f067079d7a) Co-authored-by: Chris Martinez <sydefekt@hotmail.com>
* bpo-40131: Fix source and target order in zipapp example (GH-19290) (GH-19339)Miss Islington (bot)2020-04-031-1/+1
| | | | | | (cherry picked from commit bd6a4c3d72828d3d0e13922e165998539d24f8bc) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-40122: Updated documentation for dis.findlabels() (GH-19274)Miss Islington (bot)2020-04-031-1/+1
| | | | | (cherry picked from commit b74468e233a5137ff518e61eff65ca2d8833e38a) Co-authored-by: laike9m <laike9m@users.noreply.github.com>
* bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19320)Miss Islington (bot)2020-04-032-2/+2
| | | | | | Update also OpenSSL version in Ubuntu and Coverage jobs. (cherry picked from commit 1767a0490f80c7b90d81051db24ef2b82cd9434f) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-40162: Update Travis CI config to OpenSSL 1.1.1f (GH-19319)Miss Islington (bot)2020-04-032-1/+2
| | | | | (cherry picked from commit b1ffb8b72307a556442d09b427c3b29badb9878c) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314) (GH-19316)Victor Stinner2020-04-032-3/+20
| | | | | | | | | | test_builtin.PtyTests now registers an handler for SIGHUP signal. Closing the PTY file descriptor can emit a SIGHUP signal: just ignore it. run_child() now also closes the PTY file descriptor before waiting for the process completition, otherwise the test hangs on AIX. (cherry picked from commit 7a51a7e19f0143f75f8fc9ff68f93ed40937aec6)
* lib2to3: Support named assignment expressions (GH-12702)Miss Islington (bot)2020-04-026-6/+27
| | | | | | | | | | | | | | | There are two copies of the grammar -- the one used by Python itself as Grammar/Grammar, and the one used by lib2to3 which has necessarily diverged at Lib/lib2to3/Grammar.txt because it needs to support older syntax an we want it to be reasonable stable to avoid requiring fixer rewrites. This brings suport for syntax like `if x:= foo():` to match what the live Python grammar does. This should've been added at the time of the walrus operator itself, but lib2to3 being independent is often overlooked. So we do consider this a bugfix rather than enhancement. (cherry picked from commit 3c3aa4516c70753de06bb142b6793d01330fcf0f) Co-authored-by: Tim Hatch <tim@timhatch.com>
* bpo-38972: Link to instructions to change PowerShell execution policy (GH-19131)Miss Islington (bot)2020-04-022-4/+26
| | | | | (cherry picked from commit 45217af29c7f380089af17beb48a5ea0560bbb9d) Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
* bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284) (GH-19296)Miss Islington (bot)2020-04-024-52/+115
| | | | | | | | | | | | | | | | The AbstractBasicAuthHandler class of the urllib.request module uses an inefficient regular expression which can be exploited by an attacker to cause a denial of service. Fix the regex to prevent the catastrophic backtracking. Vulnerability reported by Ben Caller and Matt Schwager. AbstractBasicAuthHandler of urllib.request now parses all WWW-Authenticate HTTP headers and accepts multiple challenges per header: use the realm of the first Basic challenge. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit 0b297d4ff1c0e4480ad33acae793fbaf4bf015b4)
* bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19288)Miss Islington (bot)2020-04-023-4/+5
| | | | | (cherry picked from commit 224e1c34d677ef42fe665ac008a000d4dcec1398) Co-authored-by: Victor Stinner <vstinner@python.org>