]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Skeleton (bot) [Mon, 12 Oct 2020 21:29:01 +0000 (14:29 -0700)]
bpo-42015: Reorder dereferencing calls in meth_dealloc, to make sure m_self is kept alive long enough (GH-22670)
(cherry picked from commit
04b8631d84a870dda456ef86039c1baf34d08500 )
Co-authored-by: Yannick Jadoul <yannick.jadoul@belgacom.net>
Miss Skeleton (bot) [Mon, 12 Oct 2020 20:27:05 +0000 (13:27 -0700)]
[doc] Fix typo in the graphlib docs (GH-22661) (GH-22669)
Automerge-Triggered-By: @pablogsal
(cherry picked from commit
abe244c458f2b1a727af4d2a56f71813e501bcb4 )
Co-authored-by: linchiwei123 <40888469+linchiwei123@users.noreply.github.com>
Co-authored-by: linchiwei123 <40888469+linchiwei123@users.noreply.github.com>
Miss Skeleton (bot) [Mon, 12 Oct 2020 13:53:10 +0000 (06:53 -0700)]
Fix typo (GH-22582)
/af/of/s
Automerge-Triggered-By: @Mariatta
(cherry picked from commit
8197a93208fea3b56e012272b6cf3f0c2c582d4a )
Co-authored-by: Gaurav Kamath <st0le@users.noreply.github.com>
Victor Stinner [Mon, 12 Oct 2020 04:30:48 +0000 (06:30 +0200)]
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) (GH-22656)
The test now waits until all threads complete to avoid leaking
running threads.
Also, use regular threads rather than daemon threads.
(cherry picked from commit
13ff396c019d548ba181cf22c6f39309a300723c )
Miss Skeleton (bot) [Sun, 11 Oct 2020 20:54:35 +0000 (13:54 -0700)]
bpo-41971: Fix test failure in test.test_tools.test_c_analyzer when mutating global state (GH-22652) (GH-22653)
(cherry picked from commit
47ecfd8030c391779dd9d3b4b07e6b01a8392481 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Skeleton (bot) [Sun, 11 Oct 2020 08:06:48 +0000 (01:06 -0700)]
Fix typo in typing.rst (GH-22625)
(cherry picked from commit
0ff8a3b374286d2218fc18f47556a5ace202dad3 )
Co-authored-by: abdo <abd.nh25@gmail.com>
Miss Skeleton (bot) [Sat, 10 Oct 2020 14:32:09 +0000 (07:32 -0700)]
bpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back to limited API (GH-22621)
(cherry picked from commit
637a09b0d6e3ad4e34e0b5e0fc82f5afeae6f74b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Karthikeyan Singaravelan [Sat, 10 Oct 2020 04:39:09 +0000 (10:09 +0530)]
[3.9] bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734) (GH-22039)
(cherry picked from commit
5f0769a )
Co-authored-by: Nathan M <nathanmaynes@gmail.com>
Miss Skeleton (bot) [Fri, 9 Oct 2020 20:20:48 +0000 (13:20 -0700)]
bpo-41831: Restore str implementation of __str__ in tkinter.EventType (GH-22355)
(cherry picked from commit
eb38c6b7aa35d3003ec0958533421902d19ce408 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Fri, 9 Oct 2020 19:56:19 +0000 (12:56 -0700)]
bpo-41831: Add tests for tkinter.Event.__repr__ (GH-22354) (GH-22617)
(cherry picked from commit
f25323a307a72c40862c87c2df822f83be6645da )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Batuhan Taskaya [Fri, 9 Oct 2020 10:31:07 +0000 (13:31 +0300)]
[3.9] bpo-41979: Accept star-unpacking on with-item targets (GH-22611) (GH-22612)
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
Automerge-Triggered-By: @pablogsal
Karthikeyan Singaravelan [Fri, 9 Oct 2020 10:08:42 +0000 (15:38 +0530)]
[3.9] bpo-41970: Avoid test failure in test_lib2to3 if the module is already imported (GH-22595) (GH-22609)
(cherry picked from commit
4a9f82f50d957b6cf3fd207de8b583d9137316b8 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Skeleton (bot) [Thu, 8 Oct 2020 22:02:26 +0000 (15:02 -0700)]
Fix the attribute names in the docstring of GenericAlias (GH-22594)
(cherry picked from commit
77f0a23e7a9fb247101b9b14a060c4ba1c4b87a5 )
Co-authored-by: Mikhail Golubev <qsolo825@gmail.com>
Miss Skeleton (bot) [Thu, 8 Oct 2020 19:02:33 +0000 (12:02 -0700)]
bpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960)
(cherry picked from commit
bfe6e03cd6931813dd61b50f5fdf7d8a8848f4cd )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Skeleton (bot) [Thu, 8 Oct 2020 18:55:24 +0000 (11:55 -0700)]
bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598)
(cherry picked from commit
27ac19cca2c639caaf6fedf3632fe6beb265f24f )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Skeleton (bot) [Thu, 8 Oct 2020 16:50:36 +0000 (09:50 -0700)]
bpo-41306: Allow scale value to not be rounded (GH-21715)
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>
Miss Skeleton (bot) [Thu, 8 Oct 2020 07:00:28 +0000 (00:00 -0700)]
bpo-41376: Fix the documentation of `site.getusersitepackages()` (GH-21602)
`site.getusersitepackages()` returns the location of the user-specific site-packages directory
even when the user-specific site-packages is disabled.
```
$ python -s -m site
sys.path = [
'/home/user/conda/lib/python37.zip',
'/home/user/conda/lib/python3.7',
'/home/user/conda/lib/python3.7/lib-dynload',
'/home/user/conda/lib/python3.7/site-packages',
]
USER_BASE: '/home/user/.local' (exists)
USER_SITE: '/home/user/.local/lib/python3.7/site-packages' (doesn't exist)
ENABLE_USER_SITE: False
```
It was not practical to prevent the function from returning None if user-specific site-packages are disabled, since there are other uses of the function which are relying on this behaviour (e.g. `python -m site`).
(cherry picked from commit
35f041dd0171f575fc3adce1709b31fdf45a5ff6 )
Co-authored-by: Phil Elson <pelson.pub@gmail.com>
Miss Skeleton (bot) [Tue, 6 Oct 2020 12:37:36 +0000 (05:37 -0700)]
bpo-41944: No longer call eval() on content received via HTTP in the CJK codec tests (GH-22566)
(cherry picked from commit
2ef5caa58febc8968e670e39e3d37cf8eef3cab8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Mon, 5 Oct 2020 17:05:50 +0000 (10:05 -0700)]
bpo-41584: clarify when the reflected method of a binary arithemtic operator is called (GH-22505)
(cherry picked from commit
d02d824e05e2cb86f4df381be18832e76e2c475f )
Co-authored-by: Brett Cannon <brett@python.org>
Miss Skeleton (bot) [Mon, 5 Oct 2020 16:49:41 +0000 (09:49 -0700)]
bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559) (#22567)
Call urllib.request.urlcleanup() to reset the global
urllib.request._opener.
(cherry picked from commit
1fce240d6c4b2b2cc17a86e88c65169e15b9feeb )
Co-authored-by: Victor Stinner <vstinner@python.org>
Łukasz Langa [Mon, 5 Oct 2020 16:07:40 +0000 (18:07 +0200)]
Post 3.9.0
Łukasz Langa [Mon, 5 Oct 2020 16:05:58 +0000 (18:05 +0200)]
Merge tag 'v3.9.0' into 3.9
Python 3.9.0
Łukasz Langa [Sun, 4 Oct 2020 17:31:29 +0000 (19:31 +0200)]
Python 3.9.0
Miss Skeleton (bot) [Mon, 5 Oct 2020 14:53:26 +0000 (07:53 -0700)]
bpo-41774: Tweak new programming FAQ entry (GH-22562)
Remove mention of space in "remove multiple items from list".
(cherry picked from commit
060937da988347a887a5f165b023d972fcb97802 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Skeleton (bot) [Mon, 5 Oct 2020 09:01:51 +0000 (02:01 -0700)]
bpo-41557: Update macOS installer to use SQLite 3.33.0 (GH-21959) (GH-22560)
(cherry picked from commit
9a7642667a71a27b38b96eb63df45f17f48b3467 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Skeleton (bot) [Sun, 4 Oct 2020 23:56:56 +0000 (16:56 -0700)]
bpo-41892: Clarify that an example in the ElementTree docs explicitly avoids modifying an XML tree while iterating over it. (GH-22464) (GH-22554)
(cherry picked from commit
40db798692ca783fc2163656f196ac77e8b9e792 )
Co-authored-by: scoder <stefan_ml@behnel.de>
Co-authored-by: scoder <stefan_ml@behnel.de>
Serhiy Storchaka [Sun, 4 Oct 2020 22:27:38 +0000 (01:27 +0300)]
[3.9] bpo-41909: Enable previously disabled recursion checks. (GH-22536) (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 )
Miss Skeleton (bot) [Sun, 4 Oct 2020 21:51:38 +0000 (14:51 -0700)]
Typo fix (GH-22496)
Multiple typo fixes in code comments
Automerge-Triggered-By: @Mariatta
(cherry picked from commit
619f98045d73859688e5cfdb946d183e6d493a64 )
Co-authored-by: Manan Kumar Garg <62146744+MananKGarg@users.noreply.github.com>
Miss Islington (bot) [Wed, 23 Sep 2020 03:58:32 +0000 (20:58 -0700)]
bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22370)
(cherry picked from commit
62e40d8450b9c78346ec3617de7fe3f0ad381510 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Mon, 21 Sep 2020 08:58:27 +0000 (01:58 -0700)]
bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)
Fix the compiler warning:
format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int`
(cherry picked from commit
c322948892438a387d752ec18d1eb512699a4d67 )
Co-authored-by: Samuel Marks <807580+SamuelMarks@users.noreply.github.com>
Pablo Galindo [Sun, 4 Oct 2020 17:11:10 +0000 (18:11 +0100)]
[3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544)
(cherry picked from commit
2cc6dc9896771ef3615abbb5ba80939a2f644a08 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Pablo Galindo [Sun, 4 Oct 2020 17:11:10 +0000 (18:11 +0100)]
[3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544)
(cherry picked from commit
2cc6dc9896771ef3615abbb5ba80939a2f644a08 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Łukasz Langa [Thu, 24 Sep 2020 14:34:21 +0000 (16:34 +0200)]
[3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module (GH-21956) (#22397)
Closes bpo issue 41602.
(cherry picked from commit
a68a2ad19c891faa891904b3da537911cc77df21 )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Miss Islington (bot) [Mon, 21 Sep 2020 22:05:17 +0000 (15:05 -0700)]
bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)
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>
Pablo Galindo [Mon, 21 Sep 2020 10:57:22 +0000 (11:57 +0100)]
Fix a compiler warning in pycore_pylifecycle.h (GH-22331)
Miss Skeleton (bot) [Sun, 4 Oct 2020 16:31:52 +0000 (09:31 -0700)]
Delete extra 'the' from `Formatter` class docstring (GH-22530) (GH-22542)
(cherry picked from commit
a619af43ccd10bab363b1e59814a2e2727422545 )
Miss Islington (bot) [Mon, 28 Sep 2020 22:16:24 +0000 (15:16 -0700)]
bpo-41875: Use __builtin_unreachable when possible (GH-22433)
(cherry picked from commit
24ba3b0df5e5f2f237d7b23b4017ba12f16320ae )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Miss Skeleton (bot) [Sun, 4 Oct 2020 15:38:03 +0000 (08:38 -0700)]
bpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526) (GH-22540)
(cherry picked from commit
1ed54435268b285964141fb74d47ceaa33ea79ab )
Miss Skeleton (bot) [Fri, 2 Oct 2020 20:43:44 +0000 (13:43 -0700)]
Typo fix - "mesasge" should be "message" (GH-22498)
* Correct at 2 places in email module
(cherry picked from commit
9cd01ece78e63bf98a1d25f70d5a020adf07ca4a )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Serhiy Storchaka [Fri, 18 Sep 2020 07:13:57 +0000 (10:13 +0300)]
[3.9] Remove duplicated words words (GH-22298). (GH-22299)
(cherry picked from commit
27201cddf3b25be7df25bbe36966531539757d60 )
Serhiy Storchaka [Fri, 18 Sep 2020 06:36:14 +0000 (09:36 +0300)]
[3.9] Remove duplicated words words (GH-20413). (GH-22296)
(cherry picked from commit
1c5d1d7304a119040fd3118128bdb412f0cce6a6 )
Miss Skeleton (bot) [Sat, 3 Oct 2020 22:33:30 +0000 (15:33 -0700)]
[doc] Use list[int] instead of List[int] (etc.) in a few more places (GH-22524)
This changes a few occurrences left behind by GH-22340.
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
7f54e563dc150cd670ca8df678437455c3a7f2cd )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 16:13:14 +0000 (09:13 -0700)]
[doc] Fix link to abc.collections.Iterable (GH-22520)
Missed this occurrence before, sorry. Also changed "the PEP" to "PEP".
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
3fe614893742faee3c64e6d974e11329a496424f )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 11:42:16 +0000 (04:42 -0700)]
[3.9] bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)
(cherry picked from commit
52301312bb9de2299b0c42468fd1936d869e651c )
Co-authored-by: Ram Rachum <ram@rachum.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 10:44:14 +0000 (03:44 -0700)]
[3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)
(cherry picked from commit
f97e42ef4d97dee64f45ed65170a6e77c8e46fdf )
Co-authored-by: Ram Rachum <ram@rachum.com>
Miss Skeleton (bot) [Fri, 2 Oct 2020 23:36:51 +0000 (16:36 -0700)]
[doc] Fix link to abc.collections.Iterable (GH-22502)
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
d4b9edd5052a2d9ae3d2be69975cc933afb37737 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Fri, 2 Oct 2020 16:39:20 +0000 (09:39 -0700)]
bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)
(cherry picked from commit
20ce62f00957d11f24f6449cd5c0ef5dd67174d4 )
Co-authored-by: Campbell Barton <ideasman42@gmail.com>
Miss Islington (bot) [Wed, 30 Sep 2020 22:49:52 +0000 (15:49 -0700)]
Fix grammar in secrets module documentation (GH-22467)
From `In particularly,` to `In particular,`
(cherry picked from commit
63298930fb531ba2bb4f23bc3b915dbf1e17e9e1 )
Co-authored-by: Max Smolens <msmolens@users.noreply.github.com>
Miss Islington (bot) [Sun, 27 Sep 2020 19:42:29 +0000 (12:42 -0700)]
[doc] Leverage the fact that the actual types can now be indexed for typing (GH-22340)
This shows users that they can use the actual types. Using deprecated types is confusing.
This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place.
This should be backported to 3.9.
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
d9ab95ff1fe81efdf70e545d536d9f6927d1ba81 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sun, 27 Sep 2020 04:03:56 +0000 (21:03 -0700)]
bpo-41858: Clarify line in optparse doc (GH-22407)
The existing line is easily read as being incomplete.
(cherry picked from commit
00eb063b6600fdb4ba5cfb99da83cc1660ec69bf )
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
Miss Islington (bot) [Wed, 23 Sep 2020 15:51:50 +0000 (08:51 -0700)]
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
(cherry picked from commit
22b7616f26694ac707fd53ece500febfad665426 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Victor Stinner [Fri, 18 Sep 2020 14:53:46 +0000 (16:53 +0200)]
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309)
Doc/requirements.txt becomes the reference for packages and package
versions needed to build the Python documentation.
* Doc/Makefile now uses Doc/requirements.txt
* .travis.yml now uses "make env" of Doc/Makefile
* Update Sphinx to version 2.4.4
(cherry picked from commit
8394500cca56490cc347604d39ca40abcdce46c3 )
Miss Islington (bot) [Fri, 18 Sep 2020 07:27:21 +0000 (00:27 -0700)]
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
Use an unique identifier for the different grammars documented using
the Sphinx productionlist markup.
productionlist markups of the same grammar, like "expressions" or
"compound statements", use the same identifier "python-grammar".
(cherry picked from commit
8af239eacfcf52e4e0e2b0223e7cea4672309483 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Terry Jan Reedy [Fri, 18 Sep 2020 00:47:22 +0000 (20:47 -0400)]
[3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)
(cherry picked from commit
a33f2c2bae759fc9d06e1c032fd2026135f2df45 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 22:33:30 +0000 (15:33 -0700)]
[doc] Use list[int] instead of List[int] (etc.) in a few more places (GH-22524)
This changes a few occurrences left behind by GH-22340.
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
7f54e563dc150cd670ca8df678437455c3a7f2cd )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Pablo Galindo [Sat, 3 Oct 2020 20:23:03 +0000 (21:23 +0100)]
[3.9] bpo-41840: Report module-level globals as both local and global in the symtable module (GH-22391). (GH-22528)
(cherry picked from commit
fb0a4651f1be4ad936f8277478f73f262d8eeb72 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 16:13:14 +0000 (09:13 -0700)]
[doc] Fix link to abc.collections.Iterable (GH-22520)
Missed this occurrence before, sorry. Also changed "the PEP" to "PEP".
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
3fe614893742faee3c64e6d974e11329a496424f )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 11:42:16 +0000 (04:42 -0700)]
[3.9] bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)
(cherry picked from commit
52301312bb9de2299b0c42468fd1936d869e651c )
Co-authored-by: Ram Rachum <ram@rachum.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 10:44:14 +0000 (03:44 -0700)]
[3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)
(cherry picked from commit
f97e42ef4d97dee64f45ed65170a6e77c8e46fdf )
Co-authored-by: Ram Rachum <ram@rachum.com>
Miss Skeleton (bot) [Sat, 3 Oct 2020 06:41:35 +0000 (23:41 -0700)]
bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default namespace was defined. (GH-22474) (GH-22507)
(cherry picked from commit
6a412c94b6b68e7e3632562dc7358a12ffd1447f )
Miss Skeleton (bot) [Fri, 2 Oct 2020 23:36:51 +0000 (16:36 -0700)]
[doc] Fix link to abc.collections.Iterable (GH-22502)
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
d4b9edd5052a2d9ae3d2be69975cc933afb37737 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Skeleton (bot) [Fri, 2 Oct 2020 20:43:44 +0000 (13:43 -0700)]
Typo fix - "mesasge" should be "message" (GH-22498)
* Correct at 2 places in email module
(cherry picked from commit
9cd01ece78e63bf98a1d25f70d5a020adf07ca4a )
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
Miss Islington (bot) [Fri, 2 Oct 2020 16:39:20 +0000 (09:39 -0700)]
bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)
(cherry picked from commit
20ce62f00957d11f24f6449cd5c0ef5dd67174d4 )
Co-authored-by: Campbell Barton <ideasman42@gmail.com>
Miss Islington (bot) [Wed, 30 Sep 2020 22:49:52 +0000 (15:49 -0700)]
Fix grammar in secrets module documentation (GH-22467)
From `In particularly,` to `In particular,`
(cherry picked from commit
63298930fb531ba2bb4f23bc3b915dbf1e17e9e1 )
Co-authored-by: Max Smolens <msmolens@users.noreply.github.com>
Miss Islington (bot) [Tue, 29 Sep 2020 05:27:06 +0000 (22:27 -0700)]
bpo-41774: Add programming FAQ entry (GH-22402)
In the "Sequences (Tuples/Lists)" section, add
"How do you remove multiple items from a list".
(cherry picked from commit
5b0181d1f6474c2cb9b80bdaf3bc56a78bf5fbe7 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 28 Sep 2020 22:16:24 +0000 (15:16 -0700)]
bpo-41875: Use __builtin_unreachable when possible (GH-22433)
(cherry picked from commit
24ba3b0df5e5f2f237d7b23b4017ba12f16320ae )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Miss Islington (bot) [Mon, 28 Sep 2020 20:18:47 +0000 (13:18 -0700)]
bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337)
(cherry picked from commit
ff9147d93b868f0e13b9fe14e2a76c2879f6787b )
Co-authored-by: Jan Mazur <16736821+mzr@users.noreply.github.com>
Miss Islington (bot) [Sun, 27 Sep 2020 19:42:29 +0000 (12:42 -0700)]
[doc] Leverage the fact that the actual types can now be indexed for typing (GH-22340)
This shows users that they can use the actual types. Using deprecated types is confusing.
This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place.
This should be backported to 3.9.
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
d9ab95ff1fe81efdf70e545d536d9f6927d1ba81 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sun, 27 Sep 2020 04:03:56 +0000 (21:03 -0700)]
bpo-41858: Clarify line in optparse doc (GH-22407)
The existing line is easily read as being incomplete.
(cherry picked from commit
00eb063b6600fdb4ba5cfb99da83cc1660ec69bf )
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
Miss Islington (bot) [Thu, 24 Sep 2020 20:07:49 +0000 (13:07 -0700)]
bpo-41775: Make 'IDLE Shell' the shell title (GH-22399)
'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>
Łukasz Langa [Thu, 24 Sep 2020 14:34:21 +0000 (16:34 +0200)]
[3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module (GH-21956) (#22397)
Closes bpo issue 41602.
(cherry picked from commit
a68a2ad19c891faa891904b3da537911cc77df21 )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Miss Islington (bot) [Wed, 23 Sep 2020 15:51:50 +0000 (08:51 -0700)]
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
(cherry picked from commit
22b7616f26694ac707fd53ece500febfad665426 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 23 Sep 2020 15:37:52 +0000 (08:37 -0700)]
bpo-33822: Update IDLE section of What's New 3.8 (GH-22383)
(cherry picked from commit
9c4eac7f02ddcf32fc1cdaf7c08c37fe9718c1fb )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Terry Jan Reedy [Wed, 23 Sep 2020 14:07:19 +0000 (10:07 -0400)]
[3.9] bpo-41841: Prepare IDLE News for 3.9 (GH-22380)
Miss Islington (bot) [Wed, 23 Sep 2020 03:58:32 +0000 (20:58 -0700)]
bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22370)
(cherry picked from commit
62e40d8450b9c78346ec3617de7fe3f0ad381510 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Tue, 22 Sep 2020 18:35:38 +0000 (11:35 -0700)]
bpo-35764: Rewrite the IDLE Calltips doc section (GH-22363)
Miss Islington (bot) [Tue, 22 Sep 2020 18:31:22 +0000 (11:31 -0700)]
fix `EventType` bases
`StrEnum` does not exist in 3.8, so use original `(str, enum.Enum)` bases.
Miss Islington (bot) [Tue, 22 Sep 2020 06:05:07 +0000 (23:05 -0700)]
bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)
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>
Miss Islington (bot) [Mon, 21 Sep 2020 22:05:17 +0000 (15:05 -0700)]
bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)
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>
Pablo Galindo [Mon, 21 Sep 2020 10:57:22 +0000 (11:57 +0100)]
Fix a compiler warning in pycore_pylifecycle.h (GH-22331)
Miss Islington (bot) [Mon, 21 Sep 2020 08:58:27 +0000 (01:58 -0700)]
bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)
Fix the compiler warning:
format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int`
(cherry picked from commit
c322948892438a387d752ec18d1eb512699a4d67 )
Co-authored-by: Samuel Marks <807580+SamuelMarks@users.noreply.github.com>
Miss Islington (bot) [Sat, 19 Sep 2020 19:56:13 +0000 (12:56 -0700)]
bpo-41811: create SortKey members using first given value (GH-22316) (GH-22325)
(cherry picked from commit
ae0d2a33ec05aece939a959d36fcf1df1e210a08 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Victor Stinner [Fri, 18 Sep 2020 14:53:46 +0000 (16:53 +0200)]
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307) (GH-22309)
Doc/requirements.txt becomes the reference for packages and package
versions needed to build the Python documentation.
* Doc/Makefile now uses Doc/requirements.txt
* .travis.yml now uses "make env" of Doc/Makefile
* Update Sphinx to version 2.4.4
(cherry picked from commit
8394500cca56490cc347604d39ca40abcdce46c3 )
Miss Islington (bot) [Fri, 18 Sep 2020 09:38:41 +0000 (02:38 -0700)]
bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)
* bpo-35293: Remove RemovedInSphinx40Warning
* Update Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst
Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-35293: Apply Victor's review
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit
6595cb0af4c51c0381c233b97884fe916a4ddd35 )
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Miss Islington (bot) [Fri, 18 Sep 2020 07:27:21 +0000 (00:27 -0700)]
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
Use an unique identifier for the different grammars documented using
the Sphinx productionlist markup.
productionlist markups of the same grammar, like "expressions" or
"compound statements", use the same identifier "python-grammar".
(cherry picked from commit
8af239eacfcf52e4e0e2b0223e7cea4672309483 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Serhiy Storchaka [Fri, 18 Sep 2020 07:13:57 +0000 (10:13 +0300)]
[3.9] Remove duplicated words words (GH-22298). (GH-22299)
(cherry picked from commit
27201cddf3b25be7df25bbe36966531539757d60 )
Serhiy Storchaka [Fri, 18 Sep 2020 06:36:14 +0000 (09:36 +0300)]
[3.9] Remove duplicated words words (GH-20413). (GH-22296)
(cherry picked from commit
1c5d1d7304a119040fd3118128bdb412f0cce6a6 )
Terry Jan Reedy [Fri, 18 Sep 2020 00:47:22 +0000 (20:47 -0400)]
[3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)
(cherry picked from commit
a33f2c2bae759fc9d06e1c032fd2026135f2df45 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Łukasz Langa [Thu, 17 Sep 2020 08:45:49 +0000 (10:45 +0200)]
Post 3.9.0rc2
Łukasz Langa [Thu, 17 Sep 2020 08:45:24 +0000 (10:45 +0200)]
Merge tag 'v3.9.0rc2' into 3.9
Python 3.9.0rc2
Miss Islington (bot) [Thu, 17 Sep 2020 07:57:07 +0000 (00:57 -0700)]
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
* 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>
Ethan Furman [Thu, 17 Sep 2020 00:37:51 +0000 (17:37 -0700)]
[3.9] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22282)
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>
Miss Islington (bot) [Thu, 17 Sep 2020 00:27:09 +0000 (17:27 -0700)]
_auto_called cleanup (GH-22285)
(cherry picked from commit
fc23a9483ef0d7c98bea9f82392377d0b6ef7b18 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Łukasz Langa [Wed, 16 Sep 2020 21:23:13 +0000 (23:23 +0200)]
Python 3.9.0rc2
Miss Islington (bot) [Wed, 16 Sep 2020 14:35:14 +0000 (07:35 -0700)]
bpo-41517: do not allow Enums to be extended (GH-22271)
fix bug that let Enums be extended via multiple inheritance
(cherry picked from commit
3064dbf5df1021e85b507366a7ea448c8895efe7 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Miss Islington (bot) [Wed, 16 Sep 2020 12:25:09 +0000 (05:25 -0700)]
bpo-41687: Fix error handling in Solaris sendfile implementation (GH-22128)
I just realized that my recent PR with sendfile on Solaris ([PR 22040](https://github.com/python/cpython/pull/22040)) has broken error handling.
Sorry for that, this simple followup fixes that.
Automerge-Triggered-By: @1st1
(cherry picked from commit
fa8c9e70104b0aef966a518eb3a80a4881906ae0 )
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Łukasz Langa [Wed, 16 Sep 2020 11:52:26 +0000 (13:52 +0200)]
[3.9] bpo-41687: Fix sendfile implementation to work with Solaris (GH-22040) (GH-22273)
(cherry picked from commit
8c0be6fd9101746235b63ddfb84106d1e9ca286b )
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Ethan Furman [Wed, 16 Sep 2020 10:58:33 +0000 (03:58 -0700)]
[3.9] bpo-41789: honor object overrides in Enum classes (GH-22250) (GH-22272)
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.
Miss Islington (bot) [Tue, 15 Sep 2020 23:59:48 +0000 (16:59 -0700)]
bpo-39587: Enum - use correct mixed-in data type (GH-22263) (GH-22266)
(cherry picked from commit
bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1 )
Miss Islington (bot) [Tue, 15 Sep 2020 23:37:13 +0000 (16:37 -0700)]
bpo-41780: Fix __dir__ of types.GenericAlias (GH-22262)
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit
2e87774df1a0eaf2a1fe8cc4d958df60f7125b6e )
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>