| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
(GH-22039)
(cherry picked from commit 5f0769a)
Co-authored-by: Nathan M <nathanmaynes@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit eb38c6b7aa35d3003ec0958533421902d19ce408)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit f25323a307a72c40862c87c2df822f83be6645da)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
(GH-22612)
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
Automerge-Triggered-By: @pablogsal
|
|
|
|
|
|
|
| |
imported (GH-22595) (GH-22609)
(cherry picked from commit 4a9f82f50d957b6cf3fd207de8b583d9137316b8)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
|
|
|
|
|
|
| |
gcc>9 (GH-22598)
(cherry picked from commit 27ac19cca2c639caaf6fedf3632fe6beb265f24f)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
codec tests (GH-22566)
(cherry picked from commit 2ef5caa58febc8968e670e39e3d37cf8eef3cab8)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
Call urllib.request.urlcleanup() to reset the global
urllib.request._opener.
(cherry picked from commit 1fce240d6c4b2b2cc17a86e88c65169e15b9feeb)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
|\
| |
| |
| | |
Python 3.9.0
|
| | |
|
| |
| |
| |
| |
| | |
(cherry picked from commit 2cc6dc9896771ef3615abbb5ba80939a2f644a08)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
pymain_run_module (GH-21956) (#22397)
Closes bpo issue 41602.
(cherry picked from commit a68a2ad19c891faa891904b3da537911cc77df21)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
* Correct at 2 places in email module
(cherry picked from commit 9cd01ece78e63bf98a1d25f70d5a020adf07ca4a)
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
|
| |
| |
| |
| |
| |
| |
| | |
methods (GH-22418)
(cherry picked from commit 52301312bb9de2299b0c42468fd1936d869e651c)
Co-authored-by: Ram Rachum <ram@rachum.com>
|
| |
| |
| |
| |
| |
| |
| | |
(GH-20554)
(cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf)
Co-authored-by: Ram Rachum <ram@rachum.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(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)
|
| |
| |
| |
| |
| | |
(cherry picked from commit 2cc6dc9896771ef3615abbb5ba80939a2f644a08)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
| |
| |
| | |
(cherry picked from commit a619af43ccd10bab363b1e59814a2e2727422545)
|
| |
| |
| |
| |
| |
| |
| | |
symtable module (GH-22391). (GH-22528)
(cherry picked from commit fb0a4651f1be4ad936f8277478f73f262d8eeb72)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
| |
| |
| |
| |
| |
| |
| | |
methods (GH-22418)
(cherry picked from commit 52301312bb9de2299b0c42468fd1936d869e651c)
Co-authored-by: Ram Rachum <ram@rachum.com>
|
| |
| |
| |
| |
| |
| |
| | |
(GH-20554)
(cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf)
Co-authored-by: Ram Rachum <ram@rachum.com>
|
| |
| |
| |
| |
| | |
default namespace was defined. (GH-22474) (GH-22507)
(cherry picked from commit 6a412c94b6b68e7e3632562dc7358a12ffd1447f)
|
| |
| |
| |
| |
| |
| | |
* Correct at 2 places in email module
(cherry picked from commit 9cd01ece78e63bf98a1d25f70d5a020adf07ca4a)
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
|
| |
| |
| |
| |
| | |
(cherry picked from commit ff9147d93b868f0e13b9fe14e2a76c2879f6787b)
Co-authored-by: Jan Mazur <16736821+mzr@users.noreply.github.com>
|
| |
| |
| |
| |
| |
| | |
'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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
pymain_run_module (GH-21956) (#22397)
Closes bpo issue 41602.
(cherry picked from commit a68a2ad19c891faa891904b3da537911cc77df21)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
|
| | |
|
| | |
|
| |
| |
| | |
`StrEnum` does not exist in 3.8, so use original `(str, enum.Enum)` bases.
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
| |
(cherry picked from commit ae0d2a33ec05aece939a959d36fcf1df1e210a08)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
|
|\
| |
| |
| | |
Python 3.9.0rc2
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
| |
(cherry picked from commit fc23a9483ef0d7c98bea9f82392377d0b6ef7b18)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
|
|
|
|
|
|
| |
fix bug that let Enums be extended via multiple inheritance
(cherry picked from commit 3064dbf5df1021e85b507366a7ea448c8895efe7)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
|
|
|
|
|
|
|
| |
(GH-22273)
(cherry picked from commit 8c0be6fd9101746235b63ddfb84106d1e9ca286b)
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
|
|
|
| |
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.
|
|
|
| |
(cherry picked from commit bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1)
|
|
|
|
|
|
| |
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit 2e87774df1a0eaf2a1fe8cc4d958df60f7125b6e)
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
(cherry picked from commit 471247150e9707e583297ac6b4edff978efd8941)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
| |
(cherry picked from commit 58de1dd6a8677bd213802c19204b827cb7134695)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
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>
|