summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* [3.9] bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734) ↵Karthikeyan Singaravelan2020-10-101-1/+2
| | | | | | | (GH-22039) (cherry picked from commit 5f0769a) Co-authored-by: Nathan M <nathanmaynes@gmail.com>
* bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)Miss Skeleton (bot)2020-10-091-3/+2
| | | | | (cherry picked from commit eb38c6b7aa35d3003ec0958533421902d19ce408) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354) (GH-22617)Miss Skeleton (bot)2020-10-091-0/+48
| | | | | (cherry picked from commit f25323a307a72c40862c87c2df822f83be6645da) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] bpo-41979: Accept star-unpacking on with-item targets (GH-22611) ↵Batuhan Taskaya2020-10-091-1/+7
| | | | | | | (GH-22612) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> Automerge-Triggered-By: @pablogsal
* [3.9] bpo-41970: Avoid test failure in test_lib2to3 if the module is already ↵Karthikeyan Singaravelan2020-10-091-2/+2
| | | | | | | imported (GH-22595) (GH-22609) (cherry picked from commit 4a9f82f50d957b6cf3fd207de8b583d9137316b8) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using ↵Miss Skeleton (bot)2020-10-082-7/+35
| | | | | | | gcc>9 (GH-22598) (cherry picked from commit 27ac19cca2c639caaf6fedf3632fe6beb265f24f) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-41306: Allow scale value to not be rounded (GH-21715)Miss Skeleton (bot)2020-10-081-1/+2
| | | | | | | | | | This fixes the test failure with Tk 6.8.10 which is caused by changes to how Tk rounds the `from`, `to` and `tickinterval` arguments. This PR uses `noconv` if the patchlevel is greater than or equal to 8.6.10 (credit to Serhiy for this idea as it is much simpler than what I previously proposed). Going into more detail for those who want it, the Tk change was made in [commit 591f68c](https://github.com/tcltk/tk/commit/591f68cb382525b72664c6fecaab87742b6cc87a) and means that the arguments listed above are rounded relative to the value of `from`. However, when rounding the `from` argument ([line 623](https://github.com/tcltk/tk/blob/591f68cb382525b72664c6fecaab87742b6cc87a/generic/tkScale.cGH-L623)), it is rounded relative to itself (i.e. rounding `0`) and therefore the assigned value for `from` is always what is given (no matter what values of `from` and `resolution`). Automerge-Triggered-By: @pablogsal (cherry picked from commit aecf036738a404371303e770f4ce4fd9f7d43de7) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-41944: No longer call eval() on content received via HTTP in the CJK ↵Miss Skeleton (bot)2020-10-061-14/+8
| | | | | | | codec tests (GH-22566) (cherry picked from commit 2ef5caa58febc8968e670e39e3d37cf8eef3cab8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559) (#22567)Miss Skeleton (bot)2020-10-051-0/+2
| | | | | | | Call urllib.request.urlcleanup() to reset the global urllib.request._opener. (cherry picked from commit 1fce240d6c4b2b2cc17a86e88c65169e15b9feeb) Co-authored-by: Victor Stinner <vstinner@python.org>
* Merge tag 'v3.9.0' into 3.9Łukasz Langa2020-10-051-479/+550
|\ | | | | | | Python 3.9.0
| * Python 3.9.0v3.9.0Łukasz Langa2020-10-051-479/+550
| |
| * [3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544)Pablo Galindo2020-10-042-17/+14
| | | | | | | | | | (cherry picked from commit 2cc6dc9896771ef3615abbb5ba80939a2f644a08) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
| * [3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from ↵Łukasz Langa2020-10-041-6/+86
| | | | | | | | | | | | | | | | pymain_run_module (GH-21956) (#22397) Closes bpo issue 41602. (cherry picked from commit a68a2ad19c891faa891904b3da537911cc77df21) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
| * bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)Miss Islington (bot)2020-10-041-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GH- [bpo-41815](): SQLite: fix segfault if backup called on closed database Attempting to backup a closed database will trigger segfault: ```python import sqlite3 target = sqlite3.connect(':memory:') source = sqlite3.connect(':memory:') source.close() source.backup(target) ``` (cherry picked from commit bfee9fad84531a471fd7864e88947320669f68e2) Co-authored-by: Peter McCormick <peter@pdmccormick.com>
| * Typo fix - "mesasge" should be "message" (GH-22498)Miss Skeleton (bot)2020-10-041-2/+2
| | | | | | | | | | | | * Correct at 2 places in email module (cherry picked from commit 9cd01ece78e63bf98a1d25f70d5a020adf07ca4a) Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
| * [3.9] bpo-41867: List options for timespec in docstrings of isoformat ↵Miss Skeleton (bot)2020-10-041-2/+4
| | | | | | | | | | | | | | methods (GH-22418) (cherry picked from commit 52301312bb9de2299b0c42468fd1936d869e651c) Co-authored-by: Ram Rachum <ram@rachum.com>
| * [3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths ↵Miss Skeleton (bot)2020-10-041-5/+14
| | | | | | | | | | | | | | (GH-20554) (cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf) Co-authored-by: Ram Rachum <ram@rachum.com>
* | [3.9] bpo-41909: Enable previously disabled recursion checks. (GH-22536) ↵Serhiy Storchaka2020-10-041-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-22550) Enable recursion checks which were disabled when get __bases__ of non-type objects in issubclass() and isinstance() and when intern strings. It fixes a stack overflow when getting __bases__ leads to infinite recursion. Originally recursion checks was disabled for PyDict_GetItem() which silences all errors including the one raised in case of detected recursion and can return incorrect result. But now the code uses PyDict_GetItemWithError() and PyDict_SetDefault() instead. (cherry picked from commit 9ece9cd65cdeb0a1f6e60475bbd0219161c348ac)
* | [3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544)Pablo Galindo2020-10-042-17/+14
| | | | | | | | | | (cherry picked from commit 2cc6dc9896771ef3615abbb5ba80939a2f644a08) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* | Delete extra 'the' from `Formatter` class docstring (GH-22530) (GH-22542)Miss Skeleton (bot)2020-10-041-1/+1
| | | | | | (cherry picked from commit a619af43ccd10bab363b1e59814a2e2727422545)
* | [3.9] bpo-41840: Report module-level globals as both local and global in the ↵Pablo Galindo2020-10-032-9/+32
| | | | | | | | | | | | | | symtable module (GH-22391). (GH-22528) (cherry picked from commit fb0a4651f1be4ad936f8277478f73f262d8eeb72) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* | [3.9] bpo-41867: List options for timespec in docstrings of isoformat ↵Miss Skeleton (bot)2020-10-031-2/+4
| | | | | | | | | | | | | | methods (GH-22418) (cherry picked from commit 52301312bb9de2299b0c42468fd1936d869e651c) Co-authored-by: Ram Rachum <ram@rachum.com>
* | [3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths ↵Miss Skeleton (bot)2020-10-031-5/+14
| | | | | | | | | | | | | | (GH-20554) (cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf) Co-authored-by: Ram Rachum <ram@rachum.com>
* | bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a ↵Miss Skeleton (bot)2020-10-032-0/+13
| | | | | | | | | | default namespace was defined. (GH-22474) (GH-22507) (cherry picked from commit 6a412c94b6b68e7e3632562dc7358a12ffd1447f)
* | Typo fix - "mesasge" should be "message" (GH-22498)Miss Skeleton (bot)2020-10-021-2/+2
| | | | | | | | | | | | * Correct at 2 places in email module (cherry picked from commit 9cd01ece78e63bf98a1d25f70d5a020adf07ca4a) Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
* | bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337)Miss Islington (bot)2020-09-282-0/+5
| | | | | | | | | | (cherry picked from commit ff9147d93b868f0e13b9fe14e2a76c2879f6787b) Co-authored-by: Jan Mazur <16736821+mzr@users.noreply.github.com>
* | bpo-41775: Make 'IDLE Shell' the shell title (GH-22399)Miss Islington (bot)2020-09-242-1/+3
| | | | | | | | | | | | 'Python Shell' may have contributed to some beginners confusing 'IDLE' with ' Python'. (cherry picked from commit 05cc881cbcf5d73a312568c78c7149eae3195072) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* | [3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from ↵Łukasz Langa2020-09-241-6/+86
| | | | | | | | | | | | | | | | pymain_run_module (GH-21956) (#22397) Closes bpo issue 41602. (cherry picked from commit a68a2ad19c891faa891904b3da537911cc77df21) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* | [3.9] bpo-41841: Prepare IDLE News for 3.9 (GH-22380)Terry Jan Reedy2020-09-231-2/+7
| |
* | bpo-35764: Rewrite the IDLE Calltips doc section (GH-22363)Miss Islington (bot)2020-09-222-20/+25
| |
* | fix `EventType` basesMiss Islington (bot)2020-09-221-6/+6
| | | | | | `StrEnum` does not exist in 3.8, so use original `(str, enum.Enum)` bases.
* | bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)Miss Islington (bot)2020-09-223-9/+6
| | | | | | | | | | | | | | The marker was added to the language in 3.8 and 3.7 only gets security patches. (cherry picked from commit 40a0625792e795cd41c4ba20475e3b770b53817a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* | bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)Miss Islington (bot)2020-09-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GH- [bpo-41815](): SQLite: fix segfault if backup called on closed database Attempting to backup a closed database will trigger segfault: ```python import sqlite3 target = sqlite3.connect(':memory:') source = sqlite3.connect(':memory:') source.close() source.backup(target) ``` (cherry picked from commit bfee9fad84531a471fd7864e88947320669f68e2) Co-authored-by: Peter McCormick <peter@pdmccormick.com>
* | bpo-41811: create SortKey members using first given value (GH-22316) (GH-22325)Miss Islington (bot)2020-09-192-3/+7
|/ | | | | (cherry picked from commit ae0d2a33ec05aece939a959d36fcf1df1e210a08) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* Merge tag 'v3.9.0rc2' into 3.9Łukasz Langa2020-09-171-30/+46
|\ | | | | | | Python 3.9.0rc2
| * Python 3.9.0rc2v3.9.0rc2Łukasz Langa2020-09-161-30/+46
| |
* | bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)Miss Islington (bot)2020-09-172-1/+26
| | | | | | | | | | | | | | | | | | * When the parameters argument is a list, correctly handle the case of changing it during iteration. * When the parameters argument is a custom sequence, no longer override an exception raised in ``__len__()``. (cherry picked from commit 0b419b791077414bbc011a412698ebb362b63761) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* | [3.9] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22282)Ethan Furman2020-09-172-2/+19
| | | | | | | | | | | | | | fix default `_missing_` to return `None` instead of raising a `ValueError` Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com> (cherry picked from commit c95ad7a91fbd7636f33a098d3b39964ab083bf49) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* | _auto_called cleanup (GH-22285)Miss Islington (bot)2020-09-172-1/+12
|/ | | | | (cherry picked from commit fc23a9483ef0d7c98bea9f82392377d0b6ef7b18) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-41517: do not allow Enums to be extended (GH-22271)Miss Islington (bot)2020-09-162-5/+17
| | | | | | fix bug that let Enums be extended via multiple inheritance (cherry picked from commit 3064dbf5df1021e85b507366a7ea448c8895efe7) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.9] bpo-41687: Fix sendfile implementation to work with Solaris (GH-22040) ↵Łukasz Langa2020-09-161-0/+6
| | | | | | | (GH-22273) (cherry picked from commit 8c0be6fd9101746235b63ddfb84106d1e9ca286b) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* [3.9] bpo-41789: honor object overrides in Enum classes (GH-22250) (GH-22272)Ethan Furman2020-09-162-1/+12
| | | EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed. This patch fixes that.
* bpo-39587: Enum - use correct mixed-in data type (GH-22263) (GH-22266)Miss Islington (bot)2020-09-152-1/+55
| | | (cherry picked from commit bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1)
* bpo-41780: Fix __dir__ of types.GenericAlias (GH-22262)Miss Islington (bot)2020-09-151-0/+5
| | | | | | Automerge-Triggered-By: @gvanrossum (cherry picked from commit 2e87774df1a0eaf2a1fe8cc4d958df60f7125b6e) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* [3.9] bpo-41631: _ast module uses again a global state (GH-21961) (GH-22258)Pablo Galindo2020-09-152-15/+106
| | | | | | | | | | | | | | | | | | | | Partially revert commit ac46eb4ad6662cf6d771b20d8963658b2186c48c: "bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)". Using a module state per module instance is causing subtle practical problems. For example, the Mercurial project replaces the __import__() function to implement lazy import, whereas Python expected that "import _ast" always return a fully initialized _ast module. Add _PyAST_Fini() to clear the state at exit. The _ast module has no state (set _astmodule.m_size to 0). Remove astmodule_traverse(), astmodule_clear() and astmodule_free() functions.. (cherry picked from commit e5fbe0cbd4be99ced5f000ad382208ad2a561c90) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-39651: Fix asyncio proactor _write_to_self() (GH-22197)Miss Islington (bot)2020-09-122-9/+20
| | | | | | | | Fix a race condition in the call_soon_threadsafe() method of asyncio.ProactorEventLoop: do nothing if the self-pipe socket has been closed. (cherry picked from commit 1b0f0e3d7d03155da1cf9769a847874d559e57e3) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-41731: Make test_cmd_line_script pass with -vv (GH-22206)Miss Islington (bot)2020-09-121-1/+1
| | | | | | | Argument script_exec_args is usually an absolute file name, but twice has form ['-m', 'module_name']. (cherry picked from commit 7e711ead26fea6465e0ef2e3b8880b57ba8fc129) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Update idlelib/help.html to current IDLE doc (GH-22181)Miss Islington (bot)2020-09-091-4/+4
| | | | | (cherry picked from commit 471247150e9707e583297ac6b4edff978efd8941) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41525: Make the Python program help ASCII-only (GH-21836)Miss Islington (bot)2020-09-091-1/+5
| | | | | (cherry picked from commit 58de1dd6a8677bd213802c19204b827cb7134695) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] Fix typo in typing.py (GH-22121) (GH-22156)Miss Islington (bot)2020-09-081-1/+1
| | | | | | | This is a trivial PR to fix a typo in a docstring in typing.py. From reverences -> references (cherry picked from commit 84ef33c5117acd9867781135a9aeb62052432e8a) Co-authored-by: Graham Bleaney <gbleaney@gmail.com>