summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.8.3v3.8.3Łukasz Langa2020-05-1312-16/+107
|
* bpo-40561: Add docstrings for webbrowser open functions (GH-19999)Miss Islington (bot)2020-05-111-0/+1
| | | | | | | Co-authored-by: Brad Solomon <brsolomon@deloitte.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit ef7973a981ff8f4687ef3fdb85a69fa15aa11fe5) Co-authored-by: Brad Solomon <brad.solomon.1124@gmail.com>
* [3.8] bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990)Miss Islington (bot)2020-05-081-0/+1
| | | | | | | | This fixes a possible memory leak in the C implementation of asyncio.Task. (cherry picked from commit d2c349b190bcba21a4a38e6520a48ad97a9f1529) Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
* bpo-40527: Fix command line argument parsing (GH-19955)Miss Islington (bot)2020-05-061-0/+2
| | | | | (cherry picked from commit 2668a9a5aa506a048aef7b4881c8dcf6b81c6870) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.8] bpo-40417: Fix deprecation warning in PyImport_ReloadModule (GH-19750) ↵Robert Rouhani2020-05-061-0/+1
| | | | | | | | (GH-19934) Automerge-Triggered-By: @brettcannon. (cherry picked from commit f40bd466bf14029e2687e36e965875adf9d4be1a) Co-authored-by: Robert Rouhani <robert.rouhani@gmail.com>
* bpo-40355: Improve error messages in ast.literal_eval with malformed Dict ↵Miss Islington (bot)2020-05-051-0/+2
| | | | | | | | nodes (GH-19868) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> (cherry picked from commit c21c51235aa8061da6b0593d6f857f42fd92fd8b) Co-authored-by: Curtis Bucher <cpbucher5@gmail.com>
* bpo-40458: Increase reserved stack space to prevent overflow crash on ↵Miss Islington (bot)2020-05-051-0/+1
| | | | | | | Windows (GH-19845) (cherry picked from commit ac4bf424119d1300f57929120968e216a85d3a25) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-40459: Fix NameError in platform.py (GH-19855)Miss Islington (bot)2020-05-051-0/+1
| | | | | (cherry picked from commit 1e7e4519a8ddc2239101a0146d788c9161143a77) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* [3.8] bpo-40398: Fix typing.get_args() for special generic aliases. ↵Serhiy Storchaka2020-05-021-0/+2
| | | | | | (GH-19720) (GH-19857) (cherry picked from commit 6292be7adf247589bbf03524f8883cb4cb61f3e9)
* bpo-40412: Nullify inittab_copy during finalization (GH-19746)Miss Islington (bot)2020-05-011-0/+1
| | | | | | | | | | | | Otherwise we leave a dangling pointer to free'd memory. If we then initialize a new interpreter in the same process and call PyImport_ExtendInittab, we will (likely) crash when calling PyMem_RawRealloc(inittab_copy, ...) since the pointer address is bogus. Automerge-Triggered-By: @brettcannon (cherry picked from commit 64224a4727321a8dd33e6f769edda401193ebef0) Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
* [3.8] bpo-39435: Fix docs for pickle.loads (GH-18160) (GH-19843)Antoine Pitrou2020-05-012-0/+2
| | | | | | | (cherry picked from commit 289842a) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> Automerge-Triggered-By: @pitrou
* [3.8] bpo-39562: Prevent collision of future and compiler flags (GH-19230) ↵Pablo Galindo2020-05-011-0/+3
| | | | | | | | | | | (GH-19835) The constant values of future flags in the __future__ module is updated in order to prevent collision with compiler flags. Previously PyCF_ALLOW_TOP_LEVEL_AWAIT was clashing with CO_FUTURE_DIVISION.. (cherry picked from commit 4454057269b995341b04d13f0bf97f96080f27d0) Co-authored-by: Batuhan Taşkaya <batuhanosmantaskaya@gmail.com>
* Python 3.8.3rc1v3.8.3rc1Łukasz Langa2020-04-2988-178/+884
|
* bpo-40436: Fix code parsing gdb version (GH-19792)Miss Islington (bot)2020-04-291-0/+1
| | | | | | test_gdb and test.pythoninfo now check gdb command exit code. (cherry picked from commit ec9bea4a3766bd815148a27f61eb24e7dd459ac7) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.8] bpo-38387: Formally document PyDoc_STRVAR and PyDoc_STR macros ↵Zachary Ware2020-04-271-0/+1
| | | | | | | | | | | | (GH-16607) (GH-19727) Adds a short description of `PyDoc_STRVAR` and `PyDoc_STR` to "Useful macros" section of C-API docs. Currently, there is [one lone mention](https://docs.python.org/3/c-api/module.html?highlight=pydoc_strvarGH-c.PyModuleDef) in the C-API reference, despite the fact that `PyDoc_STRVAR` is ubiquitous to `Modules/`. Additionally, this properly uses `c:macro` within `Doc/c-api/module.rst` to link. (cherry picked from commit b54e46c) Authored-by: Brad Solomon <brad.solomon.1124@gmail.com>
* gdbinit: Use proper define syntax (GH-19557)Miss Islington (bot)2020-04-231-1/+1
| | | | | | | | | | Using `def` rather than `define` results in: Ambiguous command "def pu": define, define-prefix. Automerge-Triggered-By: @csabella (cherry picked from commit 1221135289306333d11db25ab20cbbd21ceec630) Co-authored-by: Florian Bruhin <me@the-compiler.org>
* bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480)Miss Islington (bot)2020-04-221-0/+1
| | | | | | | | | | 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-221-0/+2
| | | | | 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-221-0/+2
| | | | | | 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-221-0/+1
| | | | | (cherry picked from commit 783a673f23c5e9ffafe12fe172e119dc0fa2abda) Co-authored-by: Ned Deily <nad@python.org>
* bpo-39942:Fix failure in `TypeVar` when missing `__name__` (GH-19616)Miss Islington (bot)2020-04-201-0/+2
| | | | | | 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-201-0/+2
| | | | | | | | 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-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)Miss Islington (bot)2020-04-181-0/+2
| | | | | | 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-181-0/+1
| | | | | | | (GH-19583) Co-authored-by: Ammar Askar <ammar@ammaraskar.com> (cherry picked from commit 12446e6a605f066d837d3a595d0a73e4f3b43b65)
* bpo-40287: Fix SpooledTemporaryFile.seek() return value (GH-19540)Miss Islington (bot)2020-04-171-0/+1
| | | | | | It has not returned the file position after the seek. (cherry picked from commit 485e715cb1ff92bc9882cd51ec32589f9cb30503) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-39793: use the same domain on make_msgid tests (GH-18698) (GH-19554)Miss Islington (bot)2020-04-161-0/+1
| | | | | | (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-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * 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-141-0/+1
| | | | | | | comments (GH-19488) (cherry picked from commit d42e5820631cd66ee1eab8f610d4b58f3dfdd81c) Co-authored-by: Barry <barry@barrys-emacs.org>
* [3.8] Update libregrtest from master (GH-19516)Victor Stinner2020-04-142-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* bpo-31758: Prevent crashes when using an uninitialized ↵Miss Islington (bot)2020-04-121-0/+2
| | | | | _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-121-0/+3
| | | | | | | | | (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-111-0/+1
| | | | | | 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-40204: Pin Sphinx version to 1.8.2 in Doc/Makefile (GH-19442)Victor Stinner2020-04-081-0/+1
|
* bpo-40089: Fix threading._after_fork() (GH-19191) (GH-19194)Miss Islington (bot)2020-04-071-0/+3
| | | | | | | | 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-061-0/+2
| | | | | | | variables (GH-19391) (GH-19394) (cherry picked from commit 799d7d61a91eb0ad3256ef9a45a90029cef93b7c) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-40164: Update Windows to OpenSSL 1.1.1f (GH-19359)Steve Dower2020-04-041-0/+1
|
* bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152)Miss Islington (bot)2020-04-041-0/+2
| | | | | | 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-031-0/+1
| | | | | | Fix default Python home path relative to the NuGet package (cherry picked from commit 6e623ff9d251e0ce86e9b18a01bfd6f067079d7a) Co-authored-by: Chris Martinez <sydefekt@hotmail.com>
* bpo-40162: Update Travis CI config to OpenSSL 1.1.1f (GH-19319)Miss Islington (bot)2020-04-031-0/+1
| | | | | (cherry picked from commit b1ffb8b72307a556442d09b427c3b29badb9878c) Co-authored-by: Victor Stinner <vstinner@python.org>
* lib2to3: Support named assignment expressions (GH-12702)Miss Islington (bot)2020-04-021-0/+2
| | | | | | | | | | | | | | | 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-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284) (GH-19296)Miss Islington (bot)2020-04-022-0/+8
| | | | | | | | | | | | | | | | 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-021-0/+1
| | | | | (cherry picked from commit 224e1c34d677ef42fe665ac008a000d4dcec1398) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-38527: fix configure script for Solaris (GH-16845)Miss Islington (bot)2020-04-011-0/+2
| | | | | | | | On Solaris, the regular "grep" command may be an old version that fails to search a binary file. We need to use the correct command (ggrep, in our case), which is found by the configure script earlier. Automerge-Triggered-By: @pablogsal (cherry picked from commit 5dd836030e0e399b21ab0865ae0d93934bdb3930) Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
* bpo-40019: Skip test_gdb if Python was optimized (GH-19081)Miss Islington (bot)2020-03-311-0/+2
| | | | | | | test_gdb now skips tests if it detects that gdb failed to read debug information because the Python binary is optimized. (cherry picked from commit 7bf069b6110278102c8f4719975a5eb5a5af25f9) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-40121: Fixes audit event raised on creating a new socket (GH-19238)Miss Islington (bot)2020-03-311-0/+1
| | | | | (cherry picked from commit 63ba5cccf484b9ec23dfbf4cf7ffdc833eda98c3) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-1812: Fix newline conversion when doctest.testfile loads from a package ↵Miss Islington (bot)2020-03-262-0/+3
| | | | | | | | whose loader has a get_data method (GH-17385) This pull request fixes the newline conversion bug originally reported in bpo-1812. When that issue was originally submitted, the open builtin did not default to universal newline mode; now it does, which makes the issue fix simpler, since the only code path that needs to be changed is the one in doctest._load_testfile where the file is loaded from a package whose loader has a get_data method. (cherry picked from commit e0b8101492f6c61dee831425b4d3dae39a953599) Co-authored-by: Peter Donis <peterdonis@alum.mit.edu>
* bpo-39879: Update datamodel docs to include dict ordering (GH-19006)Miss Islington (bot)2020-03-262-0/+3
| | | | | | Co-authored-by: furkanonder <furkantahaonder@gmail.com> (cherry picked from commit 59c644eaa72b0cc48302f59d66852c4ea8332eba) Co-authored-by: Lahfa Samy <lahfa121999@gmail.com>
* bpo-40016: re docstring: Clarify relationship of inline and argument flags ↵Miss Islington (bot)2020-03-251-0/+1
| | | | | | | | (GH-19078) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 89a2209ae6fc5f39868621799730e16f931eb497) Co-authored-by: Ram Rachum <ram@rachum.com>
* bpo-40014: Fix os.getgrouplist() (GH-19126)Miss Islington (bot)2020-03-241-3/+4
| | | | | | | | | | | Fix os.getgrouplist(): if getgrouplist() function fails because the group list is too small, retry with a larger group list. On failure, the glibc implementation of getgrouplist() sets ngroups to the total number of groups. For other implementations, double the group list size. (cherry picked from commit f5c7cabb2be4e42a5975ba8aac8bb458c8d9d6d7) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-20526: Fix PyThreadState_Clear(): don't decref frame (GH-19120) (GH-19136)Victor Stinner2020-03-241-0/+3
| | | | | | | | | | PyThreadState.frame is a borrowed reference, not a strong reference: PyThreadState_Clear() must not call Py_CLEAR(tstate->frame). Remove test_threading.test_warnings_at_exit(): we cannot warranty that the Python thread state of daemon threads is cleared in a reliable way during Python shutdown. (cherry picked from commit 5804f878e779712e803be927ca8a6df389d82cdf)