Pablo Galindo
4b4d60f928
[3.9] bpo-41490: Bump vendored pip to version 20.2.3 (GH-22527). (GH-22544)
...
(cherry picked from commit 2cc6dc9896
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-10-04 19:11:10 +02:00
Łukasz Langa
c26a666e67
[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 a68a2ad19c
)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2020-10-04 18:40:36 +02:00
Miss Islington (bot)
bd55c46895
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 bfee9fad84
)
Co-authored-by: Peter McCormick <peter@pdmccormick.com>
2020-10-04 18:36:45 +02:00
Pablo Galindo
d6360891b3
Fix a compiler warning in pycore_pylifecycle.h (GH-22331)
2020-10-04 18:35:07 +02:00
Miss Skeleton (bot)
9c2d46ac20
Delete extra 'the' from `Formatter` class docstring (GH-22530) (GH-22542)
...
(cherry picked from commit a619af43cc
)
2020-10-04 17:31:52 +01:00
Miss Islington (bot)
df71b65a88
bpo-41875: Use __builtin_unreachable when possible (GH-22433)
...
(cherry picked from commit 24ba3b0df5
)
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2020-10-04 18:19:34 +02:00
Miss Skeleton (bot)
faa8c6a8f1
bpo-41898: add caveat on root logger seeing all messages in assertLogs doc (GH-22526) (GH-22540)
...
(cherry picked from commit 1ed5443526
)
2020-10-04 16:38:03 +01:00
Miss Skeleton (bot)
87e94e151c
Typo fix - "mesasge" should be "message" (GH-22498)
...
* Correct at 2 places in email module
(cherry picked from commit 9cd01ece78
)
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2020-10-04 17:33:21 +02:00
Serhiy Storchaka
f093007d4c
[3.9] Remove duplicated words words (GH-22298). (GH-22299)
...
(cherry picked from commit 27201cddf3
)
2020-10-04 17:32:39 +02:00
Serhiy Storchaka
3d87eee300
[3.9] Remove duplicated words words (GH-20413). (GH-22296)
...
(cherry picked from commit 1c5d1d7304
)
2020-10-04 17:32:39 +02:00
Miss Skeleton (bot)
fd510e365e
[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 7f54e563dc
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-04 17:30:50 +02:00
Miss Skeleton (bot)
d96078b5e4
[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 3fe6148937
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-04 17:30:49 +02:00
Miss Skeleton (bot)
faaa303922
[3.9] bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)
...
(cherry picked from commit 52301312bb
)
Co-authored-by: Ram Rachum <ram@rachum.com>
2020-10-04 17:30:49 +02:00
Miss Skeleton (bot)
5533c4952c
[3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)
...
(cherry picked from commit f97e42ef4d
)
Co-authored-by: Ram Rachum <ram@rachum.com>
2020-10-04 17:30:49 +02:00
Miss Skeleton (bot)
fd3d00adb0
[doc] Fix link to abc.collections.Iterable (GH-22502)
...
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit d4b9edd505
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-04 17:30:49 +02:00
Miss Islington (bot)
95de3627f1
bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)
...
(cherry picked from commit 20ce62f009
)
Co-authored-by: Campbell Barton <ideasman42@gmail.com>
2020-10-04 17:30:49 +02:00
Miss Islington (bot)
5711c815f5
Fix grammar in secrets module documentation (GH-22467)
...
From `In particularly,` to `In particular,`
(cherry picked from commit 63298930fb
)
Co-authored-by: Max Smolens <msmolens@users.noreply.github.com>
2020-10-04 17:30:48 +02:00
Miss Islington (bot)
900b9851ff
[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 d9ab95ff1f
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-04 17:30:48 +02:00
Miss Islington (bot)
a5750cf434
bpo-41858: Clarify line in optparse doc (GH-22407)
...
The existing line is easily read as being incomplete.
(cherry picked from commit 00eb063b66
)
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
2020-10-04 17:30:48 +02:00
Miss Islington (bot)
7e21aab45d
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
...
(cherry picked from commit 22b7616f26
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-10-04 17:30:48 +02:00
Victor Stinner
f8b3c64958
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 8394500cca
)
2020-10-04 17:30:48 +02:00
Miss Islington (bot)
e5cc5fd89c
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 8af239eacf
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2020-10-04 17:30:47 +02:00
Terry Jan Reedy
8dd430265c
[3.9] bpo-27032, bpo-37328: Document removing HTMLParser.unescape() (GH-22288)
...
(cherry picked from commit a33f2c2bae
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-10-04 17:30:47 +02:00
Miss Skeleton (bot)
5f9a08d95f
[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 7f54e563dc
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-03 15:33:30 -07:00
Pablo Galindo
7b7aa94e51
[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 fb0a4651f1
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-10-03 21:23:03 +01:00
Miss Skeleton (bot)
e89253756c
[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 3fe6148937
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-03 09:13:14 -07:00
Miss Skeleton (bot)
8ca08310a8
[3.9] bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)
...
(cherry picked from commit 52301312bb
)
Co-authored-by: Ram Rachum <ram@rachum.com>
2020-10-03 14:42:16 +03:00
Miss Skeleton (bot)
ef7b937b8f
[3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)
...
(cherry picked from commit f97e42ef4d
)
Co-authored-by: Ram Rachum <ram@rachum.com>
2020-10-03 13:44:14 +03:00
Miss Skeleton (bot)
a0f2b66433
bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default namespace was defined. (GH-22474) (GH-22507)
...
(cherry picked from commit 6a412c94b6
)
2020-10-03 08:41:35 +02:00
Miss Skeleton (bot)
ebc8072c3d
[doc] Fix link to abc.collections.Iterable (GH-22502)
...
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit d4b9edd505
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-10-02 16:36:51 -07:00
Miss Skeleton (bot)
6d40943e34
Typo fix - "mesasge" should be "message" (GH-22498)
...
* Correct at 2 places in email module
(cherry picked from commit 9cd01ece78
)
Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
2020-10-02 13:43:44 -07:00
Miss Islington (bot)
6dc8e0eb9b
bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)
...
(cherry picked from commit 20ce62f009
)
Co-authored-by: Campbell Barton <ideasman42@gmail.com>
2020-10-02 09:39:20 -07:00
Miss Islington (bot)
8fc828ec4e
Fix grammar in secrets module documentation (GH-22467)
...
From `In particularly,` to `In particular,`
(cherry picked from commit 63298930fb
)
Co-authored-by: Max Smolens <msmolens@users.noreply.github.com>
2020-09-30 15:49:52 -07:00
Miss Islington (bot)
868c8e41eb
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 5b0181d1f6
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-28 22:27:06 -07:00
Miss Islington (bot)
cca896e13b
bpo-41875: Use __builtin_unreachable when possible (GH-22433)
...
(cherry picked from commit 24ba3b0df5
)
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2020-09-28 15:16:24 -07:00
Miss Islington (bot)
048f54dc75
bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337)
...
(cherry picked from commit ff9147d93b
)
Co-authored-by: Jan Mazur <16736821+mzr@users.noreply.github.com>
2020-09-28 13:18:47 -07:00
Miss Islington (bot)
bdf46bc7e1
[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 d9ab95ff1f
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-27 12:42:29 -07:00
Miss Islington (bot)
8b2595f68a
bpo-41858: Clarify line in optparse doc (GH-22407)
...
The existing line is easily read as being incomplete.
(cherry picked from commit 00eb063b66
)
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
2020-09-26 21:03:56 -07:00
Miss Islington (bot)
4080f12ccc
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 05cc881cbc
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-24 13:07:49 -07:00
Łukasz Langa
ca8d46dd42
[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 a68a2ad19c
)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2020-09-24 16:34:21 +02:00
Miss Islington (bot)
57e7d5c19e
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
...
(cherry picked from commit 22b7616f26
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-23 11:51:50 -04:00
Miss Islington (bot)
e33fe6c3d7
bpo-33822: Update IDLE section of What's New 3.8 (GH-22383)
...
(cherry picked from commit 9c4eac7f02
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-23 08:37:52 -07:00
Terry Jan Reedy
d7a4e5d330
[3.9] bpo-41841: Prepare IDLE News for 3.9 (GH-22380)
2020-09-23 10:07:19 -04:00
Miss Islington (bot)
64362c2e43
bpo-37062: Enum: add extended AutoNumber example (GH-22349) (GH-22370)
...
(cherry picked from commit 62e40d8450
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2020-09-22 20:58:32 -07:00
Miss Islington (bot)
f27a1577d3
bpo-35764: Rewrite the IDLE Calltips doc section (GH-22363)
2020-09-22 14:35:38 -04:00
Miss Islington (bot)
b38ad22705
fix `EventType` bases
...
`StrEnum` does not exist in 3.8, so use original `(str, enum.Enum)` bases.
2020-09-22 11:31:22 -07:00
Miss Islington (bot)
6b731c4878
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 40a0625792
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-09-21 23:05:07 -07:00
Miss Islington (bot)
4ee30c4244
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 bfee9fad84
)
Co-authored-by: Peter McCormick <peter@pdmccormick.com>
2020-09-21 15:05:17 -07:00
Pablo Galindo
724df8325d
Fix a compiler warning in pycore_pylifecycle.h (GH-22331)
2020-09-21 11:57:22 +01:00
Miss Islington (bot)
7aa534c956
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 c322948892
)
Co-authored-by: Samuel Marks <807580+SamuelMarks@users.noreply.github.com>
2020-09-21 01:58:27 -07:00