]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Fri, 5 Aug 2022 16:51:53 +0000 (09:51 -0700)]
gh-89362: Doc IDLE menu and search (GH-95697)
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
(cherry picked from commit
834064c19a110dad425dc290c91c0545eaa24471 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Petr Viktorin [Fri, 5 Aug 2022 15:30:51 +0000 (17:30 +0200)]
gh-91271: Document which parts of structs are in limited API/stable ABI (GH-32196) (GH-95711)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Fri, 5 Aug 2022 08:20:29 +0000 (01:20 -0700)]
bpo-42037: Corrected request dependencies in CookieJar functions (GH-23112) (GH-95515)
(cherry picked from commit
d29e279de38e7bc3b7deda573ba23d65831d9351 )
Co-authored-by: markus-sus <73822103+markus-sus@users.noreply.github.com>
Miss Islington (bot) [Fri, 5 Aug 2022 07:58:17 +0000 (00:58 -0700)]
GH-95685: Fix rendering of the string documentation (GH-95686) (GH-95701)
There's an extra underlines that messed the rest of the documentation rendering.
Closes #95685
(cherry picked from commit
a525f2ada407d6677bf8ca708f104694de0525e4 )
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Miss Islington (bot) [Fri, 5 Aug 2022 06:26:26 +0000 (23:26 -0700)]
gh-65802: IDLE - explain SaveAs and extensions (GH-95690)
File name extensions may or may not be shown for the current name
and are added in an OS-dependent manner if not given for the new
name.
(cherry picked from commit
9890f86ae2001d19e7a18fee5b13aa0dd6069aef )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Erlend Egeberg Aasland [Fri, 5 Aug 2022 04:41:09 +0000 (06:41 +0200)]
[3.10] Docs: sqlite3 docs fixup (GH-95681) (#95684)
- Disable links to the module itself
- Consistent ref markup
(cherry picked from commit
44f1f63ad5cf00b6f50cef0cc1a62c42632138be )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Erlend Egeberg Aasland [Thu, 4 Aug 2022 20:53:51 +0000 (22:53 +0200)]
[3.10] gh-95271: Extract placeholders howto from sqlite3 tutorial (GH-95522) (#95678)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
b24e8b28a7dc585ba367a959be83393f2352d21d )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Erlend Egeberg Aasland [Thu, 4 Aug 2022 20:14:02 +0000 (22:14 +0200)]
[3.10] gh-95273: Improve documented return values and exceptions raised for sqlite3 class methods (GH-95530) (#95674)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>.
(cherry picked from commit
12d92c733cfc00ee630b30e4e0250da400c83395 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Thu, 4 Aug 2022 18:34:37 +0000 (11:34 -0700)]
Docs: fix two typos in the sqlite3 docs (GH-95661)
- statment => statement
- transaciton => transaction
(cherry picked from commit
962acd446839c7e10caf301931760133644ce8ca )
Co-authored-by: ceh <emil@hessman.se>
Miss Islington (bot) [Thu, 4 Aug 2022 13:15:01 +0000 (06:15 -0700)]
gh-91838: Resolve HTTP links which redirect to HTTPS (GH-95642)
It updates links which redirect to HTTPS with different authority or
path.
(cherry picked from commit
d0d0154443cafb2f0a2cdfb6a1267d80cce8388e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Thu, 4 Aug 2022 09:19:44 +0000 (12:19 +0300)]
[3.10] gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS (GH-95527) (GH-95644)
If an HTTP link is redirected to a same looking HTTPS link, the latter can
be used directly without changes in readability and behavior.
It protects from a men-in-the-middle attack.
This change does not affect Python examples..
(cherry picked from commit
f79547a429d5c90af83a0da821e082cba20d4712 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 4 Aug 2022 08:05:20 +0000 (01:05 -0700)]
gh-95638: Update idlelib README file and menu lists (GH-95639)
(cherry picked from commit
621b33ce258f3eaf154322c1edf0ead1e4892e36 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 4 Aug 2022 02:27:16 +0000 (19:27 -0700)]
gh-95191: IDLE Prompts entry for What's New 3.10 (GH-95633)
(cherry picked from commit
bcc74d509a3bd7e4fdc658179ae6d77614d1fd36 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Shantanu [Wed, 3 Aug 2022 22:39:51 +0000 (15:39 -0700)]
[3.10] gh-91423: Remove bugs.python.org from bugs.rst (GH-91425) (#95615)
* Remove bugs.python.org from bugs.rst
* Update bugs.rst to the github issue tracker
* reflow
* Fix a typo and rephrase a sentence.
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
df81d2892eed3a256eb61ce59304f2173fb0c945 )
Co-authored-by: roy reznik <royreznik@gmail.com>
Co-authored-by: roy reznik <royreznik@gmail.com>
Steve Dower [Wed, 3 Aug 2022 21:52:15 +0000 (22:52 +0100)]
gh-95423: Update winreg.DeleteKeyEx documentation and remove dynamic function load (GH-95521)
Co-authored-by: Derek Kim <ddkim1024@gmail.com>
Miss Islington (bot) [Wed, 3 Aug 2022 21:50:10 +0000 (14:50 -0700)]
gh-95597: Fix typo in Lib directory files (GH-95599)
(cherry picked from commit
b53aed76d26419fc7449c358c6035c9afe055e16 )
Co-authored-by: Jo, Yunjin <black33jo@gmail.com>
Erlend Egeberg Aasland [Wed, 3 Aug 2022 21:04:35 +0000 (23:04 +0200)]
[3.10] gh-95273: Align sqlite3 const doc refs with the devguide recommendations (GH-95525). (#95618)
(cherry picked from commit
4d02572f8c39b16c83c0883917db4e31efc1048e )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Wed, 3 Aug 2022 20:11:41 +0000 (13:11 -0700)]
gh-95609: update bundled pip to 22.2.2 (gh-95610)
(cherry picked from commit
3d9d45b22cb1e90bca2901eade4b3125aeadb8c9 )
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
CAM Gerlach [Tue, 2 Aug 2022 19:04:12 +0000 (14:04 -0500)]
gh-91207: Override stylesheet fingerprinting when building for HTML Help (GH-95556)
Miss Islington (bot) [Tue, 2 Aug 2022 15:02:33 +0000 (08:02 -0700)]
gh-95233: Correct grp.getgrgid parameter name in documentation (gid -> id) (gh-95232)
(cherry picked from commit
df7c8b95372169fb9d23140d35f91970ba32189d )
Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
Miss Islington (bot) [Tue, 2 Aug 2022 13:06:15 +0000 (06:06 -0700)]
gh-92219: Clarify that some options to the installer may break the install (GH-95548) (#95550)
(cherry picked from commit
d2c1a9c76c001b18c14e50779b0ee41ea4ccf0b3 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Tue, 2 Aug 2022 13:05:46 +0000 (06:05 -0700)]
gh-95516: Add param types and clarify param descriptions of LogRecord (GH-95517) (#95565)
(cherry picked from commit
75a6441718dcbc65d993c9544e67e25bef120e82 )
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 2 Aug 2022 11:17:50 +0000 (04:17 -0700)]
gh-95191: IDLE: Include prompts when saving Shell GH-95554 (#95558)
(cherry picked from commit
b85411fc5e9e223a6bd44f89f674ee3b2e29b99e )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 2 Aug 2022 11:16:33 +0000 (04:16 -0700)]
gh-83270: Update IDLE's credits (GH-95528) (#95560)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
698fa8bf6075c1594966ef6da8501a6f81db50f2 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Pablo Galindo [Tue, 2 Aug 2022 10:05:09 +0000 (11:05 +0100)]
Post 3.10.6
Pablo Galindo [Mon, 1 Aug 2022 20:23:10 +0000 (21:23 +0100)]
Python 3.10.6
Miss Islington (bot) [Mon, 1 Aug 2022 05:25:56 +0000 (22:25 -0700)]
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
fc31a13dc1799b8d972c1f4ea49f27090aed7f48 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 31 Jul 2022 21:09:11 +0000 (14:09 -0700)]
IDLE: Fix docs URL in the About window (GH-28417)
(cherry picked from commit
0f17a754d925345d67beff18897d86780436c506 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Thomas Klausner [Sun, 31 Jul 2022 08:19:09 +0000 (08:19 +0000)]
[3.10] bpo-46053: Fix OSS audio support on NetBSD (GH-30065). (GH-95477)
(cherry picked from commit
2e7e3c4c109928870c1e33d8af36b78e92895594 )
Co-authored-by: Thomas Klausner <tk@giga.or.at>
Erlend Egeberg Aasland [Sun, 31 Jul 2022 06:47:53 +0000 (08:47 +0200)]
[3.10] gh-94635: Add Reference, How-to, and Explanation headings to sqlite3 docs (GH-94636) (#95483)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit
6c439b978bf55b29f21c595e9375202d63c8208d )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* Fix refs
Miss Islington (bot) [Sun, 31 Jul 2022 01:32:47 +0000 (18:32 -0700)]
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
53357b3ee53d767c2da5cd77f9c47117903e9a44 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Terry Jan Reedy [Sat, 30 Jul 2022 19:59:39 +0000 (15:59 -0400)]
[3.10] gh-90654: IDLE - Insert blank line in NEWS.txt (#95479)
Needed for backports.
Cherrypicked from
9ec6abf6dc6ab622efda83a28d83d25ba129bbe2
Miss Islington (bot) [Sat, 30 Jul 2022 06:38:28 +0000 (23:38 -0700)]
gh-94938: Fix test (GH-95396)
(cherry picked from commit
0956b6d9c44f66cc152c6afe22a3793e5b157cfd )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 30 Jul 2022 05:05:48 +0000 (22:05 -0700)]
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
7e19e417b5df765dabab8d6550ec0e9d897c573e )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 29 Jul 2022 19:36:58 +0000 (12:36 -0700)]
gh-95273: Relocate sqlite3 enable load extension note (GH-95430)
(cherry picked from commit
d92b19e1b500247f9a62b12b9da889b99fe333f6 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 29 Jul 2022 12:38:08 +0000 (05:38 -0700)]
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
2fbee85931296bbeddae6358583e400ce5321f89 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Łukasz Langa [Fri, 29 Jul 2022 12:36:58 +0000 (14:36 +0200)]
[3.10] gh-95166: cancel map waited on future on timeout (GH-95169) (GH-95375)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Fri, 29 Jul 2022 10:00:29 +0000 (03:00 -0700)]
gh-95273: Improve sqlite3 class descriptions (GH-95379)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
e003b64f40fa28954ec967024fa811adff6cffe7 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Fri, 29 Jul 2022 08:44:29 +0000 (01:44 -0700)]
gh-95273: Condense sqlite3 executescript example (GH-95383) (#95419)
(cherry picked from commit
e9c8de669d40d993489981be2973d1ea5bd10d0c )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Fri, 29 Jul 2022 07:48:55 +0000 (00:48 -0700)]
gh-95273: Move sqlite3 executemany examples from reference to tutorial (GH-95351)
(cherry picked from commit
f0bf7956e60b452208f279146f928d71eb0aa11b )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Fri, 29 Jul 2022 00:15:24 +0000 (17:15 -0700)]
Improve documentation for adding datetime and timedelta (gh-95403) (gh-95409)
(cherry picked from commit
6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a )
Co-authored-by: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com>
Co-authored-by: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com>
Miss Islington (bot) [Thu, 28 Jul 2022 23:39:02 +0000 (16:39 -0700)]
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
06fc249135e5b98a74fc0213e157e80412354659 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Thu, 28 Jul 2022 22:48:19 +0000 (15:48 -0700)]
gh-86128: Add warning to ThreadPoolExecutor docs about atexit behaviour (GH-94008)
(cherry picked from commit
7df2f4d78714707cfb30d83ca99ce84ef9934892 )
Co-authored-by: [object Object] <lucas.wiman@gmail.com>
Miss Islington (bot) [Thu, 28 Jul 2022 10:45:01 +0000 (03:45 -0700)]
gh-95355: Check tokens[0] after allocating memory (GH-95356)
GH-95355
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
b946f529efb4a623ac4ad968d8091edb81ebdcdb )
Co-authored-by: Honglin Zhu <zhuhonglin.zhl@alibaba-inc.com>
Miss Islington (bot) [Thu, 28 Jul 2022 10:32:20 +0000 (03:32 -0700)]
Docs: Fix refs & tweak wording in sqlite3 'Using shortcut methods' (#95358)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
ea269b9a380a52828d4e401fa695737bcd699398 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Kumar Aditya [Thu, 28 Jul 2022 10:24:47 +0000 (15:54 +0530)]
[3.10] GH-93899: fix checks for eventfd flags (GH-95170). (#95345)
(cherry picked from commit
4dd099bafff14639ef5d2185965016d8f253353f )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Serhiy Storchaka [Thu, 28 Jul 2022 06:52:00 +0000 (09:52 +0300)]
[3.10] gh-94938: Fix errror detection of unexpected keyword arguments (GH-94999) (GH-95354)
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
ebad53a4dc1bb591820724a22cef9b8459185b5f )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 27 Jul 2022 19:11:30 +0000 (12:11 -0700)]
gh-95339: update bundled pip to 22.2.1 (gh-95340)
(cherry picked from commit
226d02bb109d08601fbccd645e9d67aee2e5bcdc )
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
Erlend Egeberg Aasland [Wed, 27 Jul 2022 13:42:59 +0000 (15:42 +0200)]
[3.10] gh-95273: Normalise sqlite3 reference wording (GH-95274) (#95330)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit
2361908a9d5553102f2b2294af44852a76d2ab03 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Wed, 27 Jul 2022 12:54:14 +0000 (05:54 -0700)]
gh-94630: Fixup sqlite3 argument spec docs for connection execute* methods (GH-95319)
(cherry picked from commit
2b37395612ece0a8c37439801087ba9e2c56702f )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Wed, 27 Jul 2022 12:28:26 +0000 (05:28 -0700)]
GH-95045: gc untrack _lsprof.Profiler before deallocating it (GH-95315)
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
deacf391d7a1b3ab49bffa16088b3500fdb4c435 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Wed, 27 Jul 2022 07:43:12 +0000 (00:43 -0700)]
gh-95280: Fix test_get_ciphers on systems without RSA key exchange (GH-95282)
(cherry picked from commit
565403038b75eb64ea483b2757ba30769246d853 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Wed, 27 Jul 2022 05:49:29 +0000 (22:49 -0700)]
gh-94635: Add sqlite3 'Introduction' and 'Tutorial' doc headings (GH-95269)
(cherry picked from commit
2e35a13e46663acf665da06267c54e66c7ecf18d )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 26 Jul 2022 19:40:59 +0000 (12:40 -0700)]
gh-95291: Use import helper to improve sqlite3 audit tests (GH-95292)
Now the tests are correctly reported as skipped if sqlite3 is not available.
(cherry picked from commit
152eb90311fdf294510b5d077332580ba18c0ee4 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 26 Jul 2022 11:56:04 +0000 (04:56 -0700)]
gh-95041: Fail syslog.syslog in case inner call to syslog.openlog fails (GH-95264)
(cherry picked from commit
b1f648efc56ff17e18ec2b7402d59a771b305004 )
Co-authored-by: Noam Cohen <noam@noam.me>
Erlend Egeberg Aasland [Tue, 26 Jul 2022 08:12:50 +0000 (10:12 +0200)]
[3.10] gh-95235: Add explicit parameter list to some sqlite3 methods (GH-95240) (#95268)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit
5012bedc7ca7d78b5a42bf60eef55bac263f4060 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 26 Jul 2022 06:35:25 +0000 (23:35 -0700)]
gh-95041: Fix several minor issues in syslog.openlog() (GH-95058)
* syslog_get_argv() swallows exceptions, but not in all cases.
* if ident is non UTF-8 encodable, syslog.openlog() fails after setting the
global reference to ident. Now the C string saved internally in the previous
call to openlog() points to the freed memory.
* PySys_Audit() can crash if ident is NULL.
* There may be a race condition with syslog.syslog(), because the global
reference to ident is decrefed before setting the new value.
* Possible use of freed memory if syslog.openlog() is called while
the GIL is released in syslog.syslog().
(cherry picked from commit
68c555a50a2b74731b0db0f4dcbf51b2c11d4853 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 25 Jul 2022 16:55:46 +0000 (09:55 -0700)]
gh-95235: Document undocumented parameters in sqlite3 functions and methods (GH-95236)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
ac6a94c669cba8c8384a61b4304c87cc83728335 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Mon, 25 Jul 2022 06:39:00 +0000 (23:39 -0700)]
gh-95087: Fix IndexError in parsing invalid date in the email module (GH-95201)
Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
(cherry picked from commit
ea5ed0ba51c10cfdde7651a475438551964dfdfc )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 25 Jul 2022 05:11:41 +0000 (22:11 -0700)]
gh-95212: make multiprocessing test case parallel-safe (GH-95213)
(cherry picked from commit
5956de16cd00e7e1cf5cbf3d7b4a930eaa928321 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Sun, 24 Jul 2022 11:43:05 +0000 (04:43 -0700)]
gh-95199: upgrade bundled setuptools to 63.2.0 (gh-95200)
(cherry picked from commit
3c94d3395edbcd299cbdacd09660ed88e654eeef )
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
Miss Islington (bot) [Sun, 24 Jul 2022 10:18:33 +0000 (03:18 -0700)]
gh-95194: upgrade bundled pip to 22.2 (gh-95195)
upgrade bundled pip to 22.2
(cherry picked from commit
068ffafa5465e9388a940692d1720266a1b37257 )
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
Miss Islington (bot) [Sun, 24 Jul 2022 03:02:40 +0000 (20:02 -0700)]
gh-93157: Fix fileinput didn't support `errors` in `inplace` mode (GH-95128)
(cherry picked from commit
5c7f3bcdafedd60a385e8ca5403bc6b0b7a862b3 )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Sat, 23 Jul 2022 10:28:15 +0000 (03:28 -0700)]
Doc: Add omitted secondary prompt in inputoutput tutorial (GH-30317) (#95159)
For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit
de28ee8f755760fda13b481a34b1f326984d293a )
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Miss Islington (bot) [Fri, 22 Jul 2022 20:21:07 +0000 (13:21 -0700)]
Fix copy-friendliness of tutorial example (GH-93424)
(cherry picked from commit
34d11f1b0c0e1936a37581e0fb0daec637afca47 )
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Miss Islington (bot) [Fri, 22 Jul 2022 17:11:25 +0000 (10:11 -0700)]
Fix async method reference links in `compound_stmts` docs (GH-94935)
(cherry picked from commit
79d2f549adcbbefd4f2c0a0c9dd572bbbf252c62 )
Co-authored-by: July Tikhonov <july.tikh@gmail.com>
Miss Islington (bot) [Fri, 22 Jul 2022 16:45:58 +0000 (09:45 -0700)]
Closes gh-95133: docs, fix indentation level in TestCase.assertLogs example (GH-95134)
(cherry picked from commit
2a9c227ac11f7d8fc6d756542dd3410be0a6b6b0 )
Co-authored-by: Alexandru Mărășteanu <alexei@users.noreply.github.com>
Miss Islington (bot) [Fri, 22 Jul 2022 07:41:56 +0000 (00:41 -0700)]
gh-81040: Improve sqlite3.Cursor.rowcount docs (GH-94940)
(cherry picked from commit
f9b3706df65c4962646587b437a4eb39289dfd4c )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Fri, 22 Jul 2022 00:08:47 +0000 (17:08 -0700)]
gh-95112: Fix What's New 3.10 contribution note periods (GH-95114)
Some are missing, a few placed after the ')'.
One ') was missing.
(cherry picked from commit
c944649ffc06f155acea8454f9449fdccad0a74e )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 21 Jul 2022 19:10:53 +0000 (12:10 -0700)]
gh-95095: Use SSL_CTX_get_max_proto_version instead of SSL_CTX_ctrl (GH-95096)
The wrapper macros are more readable and match the form recommended in
the OpenSSL documentation. They also slightly less error-prone, as the
mapping of arguments to SSL_CTX_ctrl is not always clear. (Though in
this case it's straightforward.)
https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_get_max_proto_version.html
(cherry picked from commit
936f71e5d4f50f2238b0320d44f7fb5f88e39809 )
Co-authored-by: David Benjamin <davidben@davidben.net>
Miss Islington (bot) [Thu, 21 Jul 2022 00:10:32 +0000 (17:10 -0700)]
GH-95029: Describe Windows Store package isolation and redirection in more detail (GH-95030)
(cherry picked from commit
b1924b10069fb797845284552fb9da931b1ffdb9 )
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Miss Islington (bot) [Wed, 20 Jul 2022 16:24:33 +0000 (09:24 -0700)]
gh-94844: Add pathlib support to shutil archive management (GH-94846)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
(cherry picked from commit
ed4441567ec480d1e4d8f982bd1f7347e4d03c42 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Terry Jan Reedy [Wed, 20 Jul 2022 08:16:42 +0000 (04:16 -0400)]
[3.10] gh-90654: Update maintenance NEWS header (#94355)
Miss Islington (bot) [Wed, 20 Jul 2022 07:42:36 +0000 (00:42 -0700)]
gh-90654: Add item missing from idlelib/NEWS.txt (GH-95038)
(cherry picked from commit
acb105a7c1f435f93fee08e292ee12438f716abd )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 19 Jul 2022 18:57:59 +0000 (11:57 -0700)]
[3.10] gh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931) (GH-94963)
(cherry picked from commit
067f0da33506f70c36a67d5f3d8d011c8dae10c9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Erlend Egeberg Aasland [Tue, 19 Jul 2022 18:26:38 +0000 (20:26 +0200)]
[3.10] gh-94998: Remove incorrectly backported Lib/test/test_sqlite3 directory (#95016)
Miss Islington (bot) [Tue, 19 Jul 2022 17:04:47 +0000 (10:04 -0700)]
GH-91153: Handle mutating __index__ methods in bytearray item assignment (GH-94891)
(cherry picked from commit
f36589510b8708fa224d799d5b328deab558aa4e )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
Shantanu [Tue, 19 Jul 2022 06:24:48 +0000 (23:24 -0700)]
[3.10] gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (GH-94950) (#94990)
(cherry picked from commit
0daba822212cd5d6c63384a27f390f0945330c2b )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Tue, 19 Jul 2022 02:38:05 +0000 (19:38 -0700)]
test_concurrent_futures: Fix unneeded/confusing format call (GH-93119)
Added in
339fd46cb764277cbbdc3e78dcc5b45b156bb6ae - but as noted in a comment, the test only tests ThreadPoolExecutor.
(cherry picked from commit
3f2dd0a7c0b1a5112f2164dce78fcfaa0c4b39c7 )
Co-authored-by: Florian Bruhin <me@the-compiler.org>
Shantanu [Mon, 18 Jul 2022 19:43:23 +0000 (12:43 -0700)]
[3.10] gh-94947: Disallow parsing walrus with feature_version < (3, 8) (GH-94948) (#94969)
* gh-94947: Disallow parsing walrus with feature_version < (3, 8)
* oops, commit the parser
* 📜🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>.
(cherry picked from commit
ae0be5a53bb4caee3de4888341addd9c94133f2d )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Mon, 18 Jul 2022 17:33:47 +0000 (10:33 -0700)]
Fix incorrect double indent in ast doc (GH-94976)
Warning directive indent was 4 rather than 3 spaces.
(cherry picked from commit
a25a803c4c452c70da11be3e80004b47646bff4c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 18 Jul 2022 16:45:09 +0000 (09:45 -0700)]
In ast doc, update 'below' to 'above' (GH-94967)
The included asdl file was moved from 'below' to 'above' in 3.9.
(cherry picked from commit
7b617be4ab6df871cfa9d2127908cb1373578dc0 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 17 Jul 2022 15:39:30 +0000 (08:39 -0700)]
gh-94821: Fix autobind of empty unix domain address (GH-94826)
When binding a unix socket to an empty address on Linux, the socket is
automatically bound to an available address in the abstract namespace.
>>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
>>> s.bind("")
>>> s.getsockname()
b'\x0075499'
Since python 3.9, the socket is bound to the one address:
>>> s.getsockname()
b'\x00'
And trying to bind multiple sockets will fail with:
Traceback (most recent call last):
File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind
s2.bind("")
OSError: [Errno 98] Address already in use
Added 2 tests:
- Auto binding empty address on Linux
- Failing to bind an empty address on other platforms
Fixes
f6b3a07b7df6 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
(cherry picked from commit
c22f134211743cd5ad14cec1dd4f527bee542b4c )
Co-authored-by: Nir Soffer <nsoffer@redhat.com>
Miss Islington (bot) [Sun, 17 Jul 2022 05:46:43 +0000 (22:46 -0700)]
gh-94864: Fix PyArg_Parse* with deprecated format units "u" and "Z" (GH-94902)
It returned 1 (success) when warnings are turned into exceptions.
(cherry picked from commit
107c21c5d56682320b38c01b5575c1604a429239 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 16 Jul 2022 21:06:33 +0000 (14:06 -0700)]
gh-94869: Fix the location in some expressions for multi-line f-string ast nodes (GH-94895) (#94911)
(cherry picked from commit
2e9da8e3522764d09f1d6054a2be567e91a30812 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 16 Jul 2022 17:07:39 +0000 (10:07 -0700)]
gh-90844: Allow virtual environments to correctly launch when they have spaces in the path (GH-94903)
(cherry picked from commit
4b4439daed3992a5c5a83b86596d6e00ac3c1203 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 15 Jul 2022 22:16:45 +0000 (15:16 -0700)]
Add additional pointers to pathlib's mapping to os.path functions (GH-94828)
* Add additional pointers to pathlib's mapping to os.path functions
os.path.splitext has a somewhat quirky signature since it mixes the path and filename components but I wanted the documentation to mention `PurePath.stem` as the natural counterpart to `PurePath.suffix` for the common use of `os.path.splitext` to turn "file.py" into "file" and "py".
Technically this could have some discussion of how to handle the parent directory hierarchy but that seems a bit out of keeping with the spirit of this table so I omitted mentioning `PurePath.parents` here.
* Update Doc/library/pathlib.rst
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit
3789c635772fbdeb5d0fc32aa811fd6b1d935a60 )
Co-authored-by: Chris Adams <chris@improbable.org>
Miss Islington (bot) [Fri, 15 Jul 2022 07:18:30 +0000 (00:18 -0700)]
[3.10] [doc] Update cookbook example and add information about queue types. (GH-94854) (GH-94872)
(cherry picked from commit
dc54193095e8ac8d73489f7ab133e016a5556256 )
Neil Schemenauer [Fri, 15 Jul 2022 00:26:40 +0000 (17:26 -0700)]
[3.10] gh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (GH-94842)
Need to define ALWAYS_INLINE macro for 3.10.
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Thu, 14 Jul 2022 21:58:14 +0000 (14:58 -0700)]
Docs: fix typo in sqlite3.rst (GH-94798)
Colum -> Column
(cherry picked from commit
9ea72e9d8d9c7ff7c0cec4bacf6071ff4f1f6238 )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Miss Islington (bot) [Thu, 14 Jul 2022 01:27:20 +0000 (18:27 -0700)]
idlelib: replace 'while 1' with 'while True' (GH-94827)
(cherry picked from commit
6a15f918b5a6fb5113d5332ebf27df1d5360e66c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 14 Jul 2022 00:51:03 +0000 (17:51 -0700)]
gh-90359: Unify documentation style for datetime.rst (gh-94836)
(cherry picked from commit
967da5febbc77b36a5b14863e61db3a2d441a940 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Thu, 14 Jul 2022 00:16:44 +0000 (17:16 -0700)]
gh-90359: Update documentation to follow PEP 495. (gh-94800)
(cherry picked from commit
07374cce52abb7fd39729dc1b646ca3029b64c64 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Wed, 13 Jul 2022 16:39:56 +0000 (09:39 -0700)]
gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)
Fixes the failure of PGO building with `mimalloc` on Windows, ensuring that `test_bpo20891` does not break profiling data (`python31*.pgc`).
(cherry picked from commit
4a6bb30eb600e3b18f4a84c1be922c07758c613f )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Mon, 11 Jul 2022 16:14:57 +0000 (09:14 -0700)]
[3.10] GH-94736: mark SemLock test as linux only (GH-94750) (#94753)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Mon, 11 Jul 2022 14:38:27 +0000 (07:38 -0700)]
bpo-45924: Fix asyncio incorrect traceback when future's exception is raised multiple times (GH-30274) (#94748)
(cherry picked from commit
86c1df18727568758cc329baddc1836e45664023 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Mon, 11 Jul 2022 12:39:09 +0000 (05:39 -0700)]
GH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738)
* fix allocator and deallocator
* 📜🤖 Added by blurb_it.
* code review
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit
f5b76330cfb93e1ad1a77c71dafe719f6a808cec )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Mark Shannon [Mon, 11 Jul 2022 12:21:17 +0000 (13:21 +0100)]
[3.10] GH-94329: Don't raise on excessive stack consumption (GH-94421) (#94448)
Miss Islington (bot) [Sun, 10 Jul 2022 17:36:01 +0000 (10:36 -0700)]
GH-77265: Document NaN handling in statistics functions that sort or count (GH-94676) (#94725)
Miss Islington (bot) [Sat, 9 Jul 2022 16:35:54 +0000 (09:35 -0700)]
gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)
(cherry picked from commit
78307c7dc2352b6633138466debd4c10fae32970 )
Co-authored-by: Christian Heimes <christian@python.org>