]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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>
Miss Islington (bot) [Fri, 8 Jul 2022 14:50:56 +0000 (07:50 -0700)]
Use mdash-es consistently in the library docs index (GH-92762)
(cherry picked from commit
efb20a97c491821acb03564f526afaf9eed47eef )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Erlend Egeberg Aasland [Fri, 8 Jul 2022 00:50:12 +0000 (02:50 +0200)]
[3.10] gh-94622: Add more references to the sqlite3 types anchor (GH-94623). (#94679)
(cherry picked from commit
e5b841a4037d1c2ce3d12a584facf800ae36332a )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Erlend Egeberg Aasland [Thu, 7 Jul 2022 23:44:09 +0000 (01:44 +0200)]
[3.10] gh-94321: Document sqlite3.PrepareProtocol (GH-94620) (#94671)
(cherry picked from commit
fb6dccae348b954d9f625031b54711a9a33da525 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Guy Yagev [Thu, 7 Jul 2022 21:31:39 +0000 (00:31 +0300)]
gh-92743: Remove copyright sign next to "Raymond Hettinger" (#94665)
Closes GH-92743
Miss Islington (bot) [Thu, 7 Jul 2022 11:41:06 +0000 (04:41 -0700)]
GH-94644: fix test_curses ref leak (GH-94647)
(cherry picked from commit
277f55cb04409ccdf651d43df5eb9dcb3ee3128c )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Erlend Egeberg Aasland [Thu, 7 Jul 2022 11:26:21 +0000 (13:26 +0200)]
[3.10] gh-94430: Allow params named `module` or `self` with custom C names in AC (GH-94431) (#94650)
(cherry picked from commit
8bbd70b4d130f060f87e3f53810dc747a49fa369 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Erlend Egeberg Aasland [Thu, 7 Jul 2022 08:46:29 +0000 (10:46 +0200)]
[3.10] gh-94628: Add explicit parameter list to sqlite3.connect docs (GH-94629) (#94646)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit
3eb2b9634fdc6826a558fa5aa820dc6e69b7800e )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Wed, 6 Jul 2022 23:21:05 +0000 (16:21 -0700)]
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (GH-94631)
(cherry picked from commit
94988603f3c934f95220f09aefffd50c0a5d3367 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Wed, 6 Jul 2022 21:07:36 +0000 (14:07 -0700)]
gh-94017: Improve clarity of sqlite3 transaction handling docs (GH-94320)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
760b8cf0c887fbc5191611a7e7d4b8c0c4f15edc )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Pablo Galindo Salgado [Tue, 5 Jul 2022 18:52:33 +0000 (19:52 +0100)]
[3.10] gh-94510: Raise on re-entrant calls to sys.setprofile and syssettrace (GH-94511) (#94579)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Łukasz Langa [Tue, 5 Jul 2022 18:45:02 +0000 (20:45 +0200)]
[3.10] gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424) (GH-94577)
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
5f319308a820f49fec66fc3ade50bbaa9fe2105d )
Pablo Galindo Salgado [Tue, 5 Jul 2022 18:14:28 +0000 (19:14 +0100)]
[3.10] gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin (GH-94386) (GH-94574)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
36fcde61ba48c4e918830691ecf4092e4e3b9b99 )
Miss Islington (bot) [Tue, 5 Jul 2022 15:58:28 +0000 (08:58 -0700)]
gh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94569)
Co-authored-by: Carter Dodd <carter.dodd@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
c8556bcf6c0b05ac46bd74880626a2853e7c99a1 )
Vinay Sajip [Tue, 5 Jul 2022 15:04:29 +0000 (16:04 +0100)]
[3.10] bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) (GH-94565)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Miss Islington (bot) [Tue, 5 Jul 2022 12:33:23 +0000 (05:33 -0700)]
gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94556)
(cherry picked from commit
2b8ed4d3d4741811da31fc774a202d535755c0a9 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Łukasz Langa [Tue, 5 Jul 2022 12:30:37 +0000 (14:30 +0200)]
[3.10] Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551) (GH-94558)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
(cherry picked from commit
3440d197a55800ecceea3e115e44b4262411359c )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Miss Islington (bot) [Tue, 5 Jul 2022 12:24:25 +0000 (05:24 -0700)]
gh-84753: Clarify change made to `inspect` functions (GH-94554) (GH-94559)
(cherry picked from commit
a2a3f2c541290fc8f0720d1abdc12d564b856c28 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Vinay Sajip [Mon, 4 Jul 2022 08:10:13 +0000 (09:10 +0100)]
[3.10] Update logging documentation: change cross-reference and add webapp r… (GH-94542)
Miss Islington (bot) [Sun, 3 Jul 2022 17:39:20 +0000 (10:39 -0700)]
IDLE doc: Tweek RESTART and Windows console start (GH-94530)
(cherry picked from commit
39c29f753e6d6f390dce5a36613c1e03f43d28ea )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 1 Jul 2022 16:41:40 +0000 (09:41 -0700)]
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416) (GH-94493)
(cherry picked from commit
80aaeabb8bd1e6b49598a7e23e0f8d99b3fcecaf )
Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Miss Islington (bot) [Fri, 1 Jul 2022 16:22:28 +0000 (09:22 -0700)]
gh-75372: Specify major version in README for installation (GH-92759) (GH-94488)
(cherry picked from commit
3abda7a38a2a6803d4dbf70c6ae097ad5b59c58d )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 1 Jul 2022 16:15:06 +0000 (09:15 -0700)]
Update code sample when importing modules in queue doc (GH-94244) (GH-94491)
In the queue documentation, the code snippet shows the import to be not PEP 8 compliant.
Since people typically copy-paste from such code samples, I think it's important to show best-practices here.
(cherry picked from commit
ad55147c1d5dbfc23d2ec4554f5e82c18984158c )
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Jason R. Coombs [Fri, 1 Jul 2022 15:34:11 +0000 (11:34 -0400)]
[3.10] gh-93975: Provide nicer error reporting from subprocesses in test_venv.EnsurePipTest.test_with_pip (GH-93959) (GH-94004)
This change does three things:
1. Extract a function for trapping output in subprocesses.
2. Emit both stdout and stderr when encountering an error.
3. Apply the change to `ensurepip._uninstall` check.
(cherry picked from commit
6066f450b91f1cbebf33a245c14e660052ccd90a )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Thu, 30 Jun 2022 18:22:58 +0000 (11:22 -0700)]
multiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)
(cherry picked from commit
62bb7a3b50150495e215d7bd32f633eef81b3bc2 )
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>