Commit graph

113902 commits

Author SHA1 Message Date
Miss Islington (bot)
2c0017b5e6
gh-94399: Restore PATH search behaviour of py.exe launcher for '/usr/bin/env' shebang lines (GH-95582)
(cherry picked from commit 67840edb28)

Co-authored-by: Steve Dower <steve.dower@python.org>
2022-08-03 15:00:46 -07:00
Miss Islington (bot)
450ee4f791
gh-90817: Use .. deprecated-removed:: when removal version known (GH-94960)
(cherry picked from commit dc2757accd)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-08-03 14:56:16 -07:00
Miss Islington (bot)
1ed023b7c0
gh-95597: Fix typo in Lib directory files (GH-95599)
(cherry picked from commit b53aed76d2)

Co-authored-by: Jo, Yunjin <black33jo@gmail.com>
2022-08-03 14:43:01 -07:00
Steve Dower
1016df0a23
gh-95423: Update winreg.DeleteKeyEx documentation and remove dynamic function load (GH-95521)
Co-authored-by: Derek Kim <ddkim1024@gmail.com>
2022-08-03 22:25:47 +01:00
Miss Islington (bot)
a591c4701c
gh-91207: Fix CSS bug in Windows CHM help file and add deprecation message (GH-95607)
(cherry picked from commit ac3bf6155f)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-08-03 13:43:14 -07:00
Miss Islington (bot)
8d09626066
gh-95273: Align sqlite3 const doc refs with the devguide recommendations (GH-95525)
(cherry picked from commit 4d02572f8c)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-08-03 13:28:38 -07:00
Miss Islington (bot)
5bc2c3a6d0
gh-95609: update bundled pip to 22.2.2 (gh-95610)
(cherry picked from commit 3d9d45b22c)

Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
2022-08-03 12:52:38 -07:00
Miss Islington (bot)
72cad6cfe5
gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit e3b6ff19aa)

Co-authored-by: Christian Heimes <christian@python.org>
2022-08-02 12:13:07 -07:00
Miss Islington (bot)
698b52c879
gh-95233: Correct grp.getgrgid parameter name in documentation (gid -> id) (gh-95232)
(cherry picked from commit df7c8b9537)

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
2022-08-02 08:02:14 -07:00
Miss Islington (bot)
eff6778899
[3.11] gh-95516: Add param types and clarify param descriptions of LogRecord (GH-95517) (GH-95566)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-08-02 10:54:49 +01:00
Miss Islington (bot)
8570f6d1a0
gh-95191: IDLE: Include prompts when saving Shell GH-95554 (#95557)
(cherry picked from commit b85411fc5e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-08-02 02:14:19 -04:00
Miss Islington (bot)
118851b8ba
gh-83270: Update IDLE's credits (GH-95528)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 698fa8bf60)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-08-01 21:54:28 -07:00
Miss Islington (bot)
5f139e5044
gh-92219: Clarify that some options to the installer may break the install (GH-95548)
(cherry picked from commit d2c1a9c76c)

Co-authored-by: Steve Dower <steve.dower@python.org>
2022-08-01 17:06:22 -07:00
Miss Islington (bot)
b12dba40ff
gh-91447: Fix findtext to only give an empty string on None (GH-91486)
The API documentation for [findtext](https://docs.python.org/3/library/xml.etree.elementtree.htmlGH-xml.etree.ElementTree.Element.findtext) states that this function gives back an empty string on "no text content." With the previous implementation, this would give back a empty string even on text content values such as 0 or False. This patch attempts to resolve that by only giving back an empty string if the text attribute is set to `None`. Resolves GH-91447.

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit a95e60db74)

Co-authored-by: Eugene Triguba <eugenetriguba@gmail.com>
2022-08-01 14:22:33 -07:00
Miss Islington (bot)
7baca3c05e
GH-95150: Use position and exception tables for code hashing and equality (GH-95509)
(cherry picked from commit c7e5bbaee8)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2022-08-01 11:33:49 -07:00
Miss Islington (bot)
76d83b1dfe
gh-95173: Add a regression test for sorting tuples containing None (GH-95464)
(cherry picked from commit c0cd790219)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2022-08-01 09:29:57 -07:00
Miss Islington (bot)
3192fd7683
gh-95445: Ensure Windows msi uninstalls document folder successfully (GH-95465)
(cherry picked from commit 7d8973870b)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
2022-08-01 09:07:24 -07:00
Christian Heimes
e62a0dfab2
[3.11] gh-95174: Add pthread stubs for WASI (GH-95234) (#95503)
Co-authored-by: Brett Cannon <brett@python.org>.
(cherry picked from commit 0fe645d6fd)

Co-authored-by: Christian Heimes <christian@python.org>
2022-08-01 15:37:45 +01:00
Christian Heimes
9af9ea28e7
[3.11] gh-95415: Make availability directive consistent (GH-95416) (GH-95438)
Co-authored-by: Christian Heimes <christian@python.org>
2022-08-01 14:26:19 +02:00
Miss Islington (bot)
ad2872f5fd
gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions (GH-95523)
(cherry picked from commit 1e6b63542e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-08-01 02:22:09 -07:00
Miss Islington (bot)
e4541c474a
gh-95511: IDLE - fix Shell context menu copy-with-prompts bug (GH-95512)
If one selects whole lines, as the sidebar makes easy, do not
add an extra line.  Only move the end of a selection to the
beginning of the next line when not already at the beginning
of a line.  (Also improve the surrounding code.)
(cherry picked from commit fc31a13dc1)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-31 22:32:33 -07:00
Miss Islington (bot)
a4cda28f7b
bpo-42037: Corrected request dependencies in CookieJar functions (GH-23112)
(cherry picked from commit d29e279de3)

Co-authored-by: markus-sus <73822103+markus-sus@users.noreply.github.com>
2022-07-31 19:49:47 -07:00
Miss Islington (bot)
ab444b7fc6
IDLE: Fix docs URL in the About window (GH-28417)
(cherry picked from commit 0f17a754d9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-31 14:11:35 -07:00
Christian Heimes
06b5f78d64
[3.11] gh-95174: WASI: skip missing sockets functions (GH-95179) (GH-95308)
Co-authored-by: Christian Heimes <christian@python.org>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-07-31 18:19:32 +02:00
Miss Islington (bot)
147a9a8be7
bpo-45445: Revert "bpo-45445: Fail if an invalid X-option is provided in the command line (GH-28823)" (GH-94745)
(cherry picked from commit aa37ffda29)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-07-31 08:58:02 -07:00
Christian Heimes
db13c0c1b8
[3.11] gh-95174: Handle missing dup() and constants in WASI (GH-95229) (GH-95272)
Co-authored-by: Christian Heimes <christian@python.org>
2022-07-31 16:39:41 +01:00
Erlend Egeberg Aasland
c7ac8b6588
[3.11] gh-94635: Add Reference, How-to, and Explanation headings to sqlite3 docs (GH-94636) (#95482)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit 6c439b978b)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>

* Fix refs
2022-07-31 08:48:13 +02:00
Miss Islington (bot)
3ca0016939
gh-95471: IDLE - Tweak Edit menu (GH-95481)
Move `Select All` above  `Cut` as it is used with `Cut` and `Copy` but not `Paste`.  Add a separator between `Replace` and `Go to Line` to separate items that belong to the 'Edit-find' (above) and 'Edit-show' (below) IDLE github project topics.
(cherry picked from commit 53357b3ee5)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-30 18:34:04 -07:00
Miss Islington (bot)
cfef4df7ce
gh-90654: IDLE - Insert blank line in NEWS.txt (GH-95478)
Needed for backports.
(cherry picked from commit 9ec6abf6dc)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-07-30 13:24:13 -07:00
Miss Islington (bot)
bd6452a3a8
gh-94938: Fix test (GH-95396)
(cherry picked from commit 0956b6d9c4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-29 23:39:54 -07:00
Miss Islington (bot)
a459ee9543
gh-95411: IDLE - Enable using the module browser with .pyw files (GH-95397)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 7e19e417b5)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-29 22:09:32 -07:00
Miss Islington (bot)
1187efeebb
gh-95273: Relocate sqlite3 enable load extension note (GH-95430)
(cherry picked from commit d92b19e1b5)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-29 12:38:12 -07:00
Miss Islington (bot)
30ca6914c7
gh-95432: Fixup sqlite3 tutorial example (GH-95431)
- the insert statement should have five placeholders, not four
- missing ... in the multiline row list
(cherry picked from commit 2fbee85931)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-29 05:41:46 -07:00
Miss Islington (bot)
efeda8b4a1
GH-95097: fix asyncio.run for tasks without uncancel method (GH-95211) (GH-95387)
(cherry picked from commit 54f48844d1)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-07-29 14:38:02 +02:00
Miss Islington (bot)
c26470f0cc
gh-95273: Improve sqlite3 class descriptions (GH-95379)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit e003b64f40)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-07-29 03:02:16 -07:00
Miss Islington (bot)
00566a8124
GH-90081: Run python tracers at full speed (GH-95328) (#95363)
(cherry picked from commit b8b2990fb3)

Co-authored-by: Mark Shannon <mark@hotpy.org>

Co-authored-by: Mark Shannon <mark@hotpy.org>
2022-07-29 09:43:52 +01:00
Miss Islington (bot)
f06f3656c5
gh-95273: Move sqlite3 executemany examples from reference to tutorial (GH-95351)
(cherry picked from commit f0bf7956e6)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-07-29 00:51:20 -07:00
Miss Islington (bot)
6eae15abb6
gh-95273: Condense sqlite3 executescript example (GH-95383)
(cherry picked from commit e9c8de669d)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-07-29 00:48:47 -07:00
Miss Islington (bot)
3e9a496b6b
Improve documentation for adding datetime and timedelta (gh-95403) (gh-95408)
(cherry picked from commit 6e44bf9558)

Co-authored-by: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com>

Co-authored-by: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com>
2022-07-28 20:14:05 -04:00
Miss Islington (bot)
309c8f316d
gh-89610: Add .pyi as a recognised extension for IDLE on macOS (GH-95393)
This allows opening stub files by double clicking on them in the Finder.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 06fc249135)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-28 16:28:50 -07:00
Miss Islington (bot)
b50f58ecb4
gh-86128: Add warning to ThreadPoolExecutor docs about atexit behaviour (GH-94008)
(cherry picked from commit 7df2f4d787)

Co-authored-by: [object Object] <lucas.wiman@gmail.com>
2022-07-28 15:46:45 -07:00
Miss Islington (bot)
1368a1f724
gh-95359: Fix py.exe launcher handling of per-user py.ini and command names (GH-95399)
(cherry picked from commit 38bb2068fe)

Co-authored-by: Steve Dower <steve.dower@python.org>
2022-07-28 13:52:13 -07:00
Miss Islington (bot)
9626dea86f
[3.11] Update link to faster cpython benchmarks (GH-95391) (GH-95392)
(cherry picked from commit a1daf6e5cc)


Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>

Automerge-Triggered-By: GH:Fidget-Spinner
2022-07-28 09:31:31 -07:00
Miss Islington (bot)
6934726d22
gh-95369: add missing decref in error case of exception group's split (GH-95370)
(cherry picked from commit bceb197947)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-07-28 04:28:46 -07:00
Miss Islington (bot)
763801aae2
gh-95166: cancel map waited on future on timeout (GH-95169) (GH-95364)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit e16d4ed590)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2022-07-28 12:56:21 +02:00
Miss Islington (bot)
123079241d
Docs: Fix refs & tweak wording in sqlite3 'Using shortcut methods' (#95357)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit ea269b9a38)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-28 12:32:56 +02:00
Miss Islington (bot)
d3cc99bdce
gh-95355: Check tokens[0] after allocating memory (GH-95356)
GH-95355

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit b946f529ef)

Co-authored-by: Honglin Zhu <zhuhonglin.zhl@alibaba-inc.com>
2022-07-28 03:29:50 -07:00
Kumar Aditya
7813d976ae
[3.11] GH-93899: fix checks for eventfd flags (GH-95170). (#95342)
(cherry picked from commit 4dd099baff)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-07-28 12:24:36 +02:00
Serhiy Storchaka
33efd7f7a3
[3.11] gh-94938: Fix errror detection of unexpected keyword arguments (GH-94999) (GH-95353)
When keyword argument name is an instance of a str subclass with
overloaded methods __eq__ and __hash__, the former code could not find
the name of an extraneous keyword argument to report an error, and
_PyArg_UnpackKeywords() returned success without setting the
corresponding cell in the linearized arguments array. But since the number
of expected initialized cells is determined as the total number of passed
arguments, this lead to reading NULL as a keyword parameter value, that
caused SystemError or crash or other undesired behavior.
(cherry picked from commit ebad53a4dc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-07-28 09:51:45 +03:00
Miss Islington (bot)
547f0bb82f
gh-95339: update bundled pip to 22.2.1 (gh-95340)
(cherry picked from commit 226d02bb10)

Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
2022-07-27 12:11:15 -07:00