]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sun, 10 Dec 2023 02:56:07 +0000 (03:56 +0100)]
[3.11] IDLE: Tweak iomenu.IOBinding.maybesave (GH-112914) (#112918)
Add docstring, use f-string, simplify code.
(cherry picked from commit
ca1bde894305a1b88fdbb191426547f35b7e9200 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Alex Waygood [Sat, 9 Dec 2023 22:56:01 +0000 (22:56 +0000)]
[3.11] gh-101100: Fix Sphinx nitpicks in `library/tempfile.rst` (#112886) (#112913)
(cherry-picked from commit
54410e6bd9 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 9 Dec 2023 22:50:01 +0000 (23:50 +0100)]
[3.11] gh-101100: Improve documentation of `TracebackType` attributes (GH-112884) (#112912)
gh-101100: Improve documentation of `TracebackType` attributes (GH-112884)
(cherry picked from commit
96f64a2b1b4e3d4902848c63e42717a9c5539e03 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sat, 9 Dec 2023 13:31:42 +0000 (14:31 +0100)]
[3.11] gh-79429: Ignore FileNotFoundError when remove a temporary directory in the multiprocessing finalizer (GH-112865) (GH-112897)
(cherry picked from commit
7e82c626c44a6924af38d0a8af3cc8b2d13873ec )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Alex Waygood [Fri, 8 Dec 2023 14:03:15 +0000 (14:03 +0000)]
[3.11] gh-101100: Fix Sphinx nits in `library/contextlib.rst` (#112870) (#112874)
(cherry-picked from commit
e4c087603397a1314253b861d35f8314fba8ae92 )
Miss Islington (bot) [Fri, 8 Dec 2023 13:25:05 +0000 (14:25 +0100)]
[3.11] gh-101100: Improve documentation for attributes on instance methods (GH-112832) (#112873)
gh-101100: Improve documentation for attributes on instance methods (GH-112832)
(cherry picked from commit
ed21d0c1f4bd17b392e24bfd83e652723dad4ddf )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Fri, 8 Dec 2023 12:38:40 +0000 (13:38 +0100)]
[3.11] gh-101100: Fix Sphinx nitpicks in `library/shelve.rst` (GH-112836) (#112869)
gh-101100: Fix Sphinx nitpicks in `library/shelve.rst` (GH-112836)
(cherry picked from commit
3cdcc2edf81c7be4c88d4f273947ce29f916f49a )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Łukasz Langa [Fri, 8 Dec 2023 11:47:32 +0000 (12:47 +0100)]
[3.11] gh-110190: Temporarily skip new test introduced in gh-112604 on PPC64LE (GH-112818) (#112830)
(cherry picked from commit
9f67042f28bf886a9bf30fed6795d26cff255f1e )
Miss Islington (bot) [Fri, 8 Dec 2023 09:08:04 +0000 (10:08 +0100)]
[3.11] gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH-112834) (#112852)
gh-110017: Disable test_signal.test_stress_modifying_handlers on macOS (GH-112834)
Test test_stress_modifying_handlers in test_signal can crash
the interpreter due to a bug in macOS. Filed as
FB13453490
with Apple.
(cherry picked from commit
bf0beae6a05f3266606a21e22a4d803abbb8d731 )
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Alex Waygood [Thu, 7 Dec 2023 21:12:37 +0000 (21:12 +0000)]
[3.11] gh-101100: Silence Sphinx warnings when `ntpath` or `posixpath` are referenced (#112833) (#112858)
(cherry-picked from commit
2c3906bc4b )
Serhiy Storchaka [Thu, 7 Dec 2023 17:46:30 +0000 (19:46 +0200)]
[3.11] gh-79325: Fix recursion error in TemporaryDirectory cleanup on Windows (GH-112762) (GH-112848)
(cherry picked from commit
b2923a61a10dc2717f4662b590cc9f6d181c6983 )
Serhiy Storchaka [Thu, 7 Dec 2023 16:37:10 +0000 (18:37 +0200)]
[3.11] gh-91133: tempfile.TemporaryDirectory: fix symlink bug in cleanup (GH-99930) (GH-112839)
(cherry picked from commit
81c16cd94ec38d61aa478b9a452436dc3b1b524d )
Co-authored-by: Søren Løvborg <sorenl@unity3d.com>
Miss Islington (bot) [Thu, 7 Dec 2023 10:28:54 +0000 (11:28 +0100)]
[3.11] gh-109981: Fix support.fd_count() on macOS 14 (GH-112797) (#112825)
gh-109981: Fix support.fd_count() on macOS 14 (GH-112797)
Use scanning "/dev/fd/" on macOS in support.fd_count(). That's both more efficient than scanning all possible file descriptors, and avoids crashing the interpreter when there are open "guarded" file descriptors.
"Guarded" file descriptors are a macOS feature where file descriptors used by system libraries are marked and cause hard crashes when used by "user" code.
(cherry picked from commit
953ee622b3901d3467e65e3484dcfa75ba6fcddf )
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Alex Waygood [Wed, 6 Dec 2023 22:23:20 +0000 (22:23 +0000)]
[3.11] gh-101100: Improve documentation of code object attributes (#112781) (#112817)
(cherry-picked from commit
e9707d3c3d )
Alex Waygood [Wed, 6 Dec 2023 22:04:33 +0000 (22:04 +0000)]
[3.11] gh-101100: Fix Sphinx nitpicks in `library/reprlib.rst` (#112811) (#112815)
(cherry-picked from commit
3870d19d15 )
Diego Russo [Wed, 6 Dec 2023 15:57:42 +0000 (15:57 +0000)]
[3.11] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112766)
Set MAX_STRUCT_SIZE to 32 in stgdict.c when on Arm platforms.
This because on Arm platforms structs with at most 4 elements of any
floating point type values can be passed through registers. If the type
is double the maximum size of the struct is 32 bytes.
On x86-64 Linux, it's maximum 16 bytes hence we need to differentiate.
(cherry picked from commit
bc68f4a4abcfbea60bb1db1ccadb07613561931c )
Miss Islington (bot) [Wed, 6 Dec 2023 15:04:07 +0000 (16:04 +0100)]
[3.11] gh-75666: Tkinter: "unbind(sequence, funcid)" now only unbinds "funcid" (GH-111322) (GH-112801)
Previously, "widget.unbind(sequence, funcid)" destroyed the current binding
for "sequence", leaving "sequence" unbound, and deleted the "funcid"
command.
Now it removes only "funcid" from the binding for "sequence", keeping
other commands, and deletes the "funcid" command.
It leaves "sequence" unbound only if "funcid" was the last bound command.
(cherry picked from commit
cc7e45cc572dd818412a649970fdee579417701f )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: GiovanniL <13402461+GiovaLomba@users.noreply.github.com>
Miss Islington (bot) [Wed, 6 Dec 2023 10:03:36 +0000 (11:03 +0100)]
[3.11] gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` parameters in slot typedefs table (GH-112742) (GH-112793)
gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` parameters in slot typedefs table (GH-112742)
In the slot typedefs table, the parameter of `destructor`
and the first parameter of `traverseproc` should both be
`PyObject *` rather than `void *`.
Same for `inquiry`.
(cherry picked from commit
00cce0fe495ee820cd3ca5878bdbe3dd65b1be7b )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Miss Islington (bot) [Wed, 6 Dec 2023 08:50:49 +0000 (09:50 +0100)]
[3.11] gh-101100: Fix most Sphinx nitpicks in the glossary and `stdtypes.rst` (GH-112757) (#112790)
gh-101100: Fix most Sphinx nitpicks in the glossary and `stdtypes.rst` (GH-112757)
(cherry picked from commit
e3f670e13792305cfb977d5cffd8e6aa03e8fe7f )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Serhiy Storchaka [Wed, 6 Dec 2023 08:12:08 +0000 (10:12 +0200)]
[3.11] gh-108927: Include new dir test/regrtestdata in the installation (GH-112765) (GH-112784)
(cherry picked from commit
f8c0198e3bfa2f6f65e426765a5efddd8ece78b0 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Alex Waygood [Tue, 5 Dec 2023 20:23:25 +0000 (20:23 +0000)]
[3.11] gh-101100: Properly document frame object attributes (#112735) (#112775)
* [3.11] gh-101100: Properly document frame object attributes (#112735)
(cherry-picked from commit
d109f637c0 )
Miss Islington (bot) [Tue, 5 Dec 2023 20:02:06 +0000 (21:02 +0100)]
[3.11] gh-112769: test_zlib: Fix comparison of ZLIB_RUNTIME_VERSION with non-int suffix (GH-112771) (GH-112774)
zlib-ng defines the version as "1.3.0.zlib-ng".
(cherry picked from commit
d384813ff18b33280a90b6d2011654528a2b6ad1 )
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Miss Islington (bot) [Tue, 5 Dec 2023 19:25:52 +0000 (20:25 +0100)]
[3.11] bpo-35332: Handle os.close() errors in shutil.rmtree() (GH-23766) (GH-112764)
* Ignore os.close() errors when ignore_errors is True.
* Pass os.close() errors to the error handler if specified.
* os.close no longer retried after error.
(cherry picked from commit
11d88a178b077e42025da538b890db3151a47070 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 5 Dec 2023 13:44:49 +0000 (14:44 +0100)]
[3.11] bpo-43153: Don't mask `PermissionError` with `NotADirectoryError` during tempdirectory cleanup (GH-29940) (GH-112754)
(cherry picked from commit
8cdfee1bb902fd1e38d79170b751ef13a0907262 )
Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 5 Dec 2023 10:06:30 +0000 (11:06 +0100)]
[3.11] gh-101100: Fix many easily solvable Sphinx nitpicks in the datamodel docs (GH-112737) (#112749)
gh-101100: Fix many easily solvable Sphinx nitpicks in the datamodel docs (GH-112737)
(cherry picked from commit
2f20cafdbfc39925f9374f36f9d53bac365ed32a )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Serhiy Storchaka [Tue, 5 Dec 2023 09:35:36 +0000 (11:35 +0200)]
[3.11] gh-62897: Update PyUnicode C API parameter names (GH-12680) (GH-112745)
Standardize PyUnicode C API parameter names across the documentation.
(cherry picked from commit
b31232ddf7f219ca8ff9e8d0401c02eb0b6ffec3 )
Co-authored-by: Rune Tynan <runetynan@gmail.com>
Pablo Galindo [Mon, 4 Dec 2023 21:50:17 +0000 (21:50 +0000)]
Merge remote-tracking branch 'upstream/3.11' into 3.11
Pablo Galindo [Mon, 4 Dec 2023 21:49:55 +0000 (21:49 +0000)]
Post 3.11.7
Miss Islington (bot) [Mon, 4 Dec 2023 20:20:41 +0000 (21:20 +0100)]
[3.11] gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615) (#112725)
gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615)
Work around a macOS bug, limit zlib crc32 calls to 1GiB.
Without this, `zlib.crc32` and `binascii.crc32` could produce incorrect
results on multi-gigabyte inputs depending on the macOS version's Apple
supplied zlib implementation.
(cherry picked from commit
4eddb4c9d9452482c9af7fa9eec223d12b5a9f33 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Pablo Galindo [Mon, 4 Dec 2023 17:54:29 +0000 (17:54 +0000)]
Python 3.11.7
Miss Islington (bot) [Mon, 4 Dec 2023 16:16:03 +0000 (17:16 +0100)]
[3.11] gh-108927: Fix removing testing modules from sys.modules (GH-108952) (ПР-112712)
It breaks import machinery if the test module has submodules used in
other tests.
(cherry picked from commit
e08b70fab1fbc45fa498020aac522ae1d5da6136 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Seth Michael Larson [Mon, 4 Dec 2023 16:02:45 +0000 (10:02 -0600)]
[3.11] GH-112160: Pin to manifest of quay.io/tiran/cpython_autoconf (#112161)
Miss Islington (bot) [Mon, 4 Dec 2023 12:48:58 +0000 (13:48 +0100)]
[3.11] gh-101100: Fix Sphinx nitpicks in `library/abc.rst` (GH-112703) (#112704)
gh-101100: Fix Sphinx nitpicks in `library/abc.rst` (GH-112703)
(cherry picked from commit
9560e0d6d7a316341939b4016e47e03bd5bf17c3 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Mon, 4 Dec 2023 12:20:19 +0000 (13:20 +0100)]
[3.11] gh-109786: Fix leaks and crash when re-enter itertools.pairwise.__next__() (GH-109788) (GH-112700)
(cherry picked from commit
6ca9d3e0173c38e2eac50367b187d4c1d43f9892 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 4 Dec 2023 11:54:39 +0000 (12:54 +0100)]
[3.11] gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (GH-109814) (#112701)
gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (GH-109814)
(cherry picked from commit
f2eaa92b0cc5a37a9e6010c7c6f5ad1a230ea49b )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 4 Dec 2023 11:11:24 +0000 (12:11 +0100)]
[3.11] gh-101100: Fix Sphinx nitpicks in `library/functions.rst` (GH-112669) (#112698)
gh-101100: Fix Sphinx nitpicks in `library/functions.rst` (GH-112669)
(cherry picked from commit
cda737924fd616c4e08027888258f97e81f34447 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Mon, 4 Dec 2023 08:37:25 +0000 (09:37 +0100)]
[3.11] gh-112625: Protect bytearray from being freed by misbehaving iterator inside bytearray.join (GH-112626) (GH-112694)
(cherry picked from commit
0e732d0997cff08855d98c17af4dd5527f10e419 )
Co-authored-by: chilaxan <chilaxan@gmail.com>
Miss Islington (bot) [Mon, 4 Dec 2023 08:18:03 +0000 (09:18 +0100)]
[3.11] gh-112678: Declare `Tkapp_CallDeallocArgs()` as `static` (GH-112679) (GH-112691)
(cherry picked from commit
23e001fa9f1897ba3384c02bbbe634313358a549 )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Miss Islington (bot) [Mon, 4 Dec 2023 06:59:19 +0000 (07:59 +0100)]
[3.11] gh-66819: More IDLE htest updates(4) (GH-112686) (#112689)
Mostly double spacing before 'if __name__...'.
(cherry picked from commit
e5b0db0315941b968ebcc2414bfcdd2da44fd3c2 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 4 Dec 2023 05:10:22 +0000 (06:10 +0100)]
[3.11] gh-66819: More IDLE htest updates(3) (GH-112683) (#112685)
Revise spec-callable pairs from percolator to end.
(cherry picked from commit
5a1b5316af648ae79bb91f28253b6272bbbd2886 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 3 Dec 2023 20:30:31 +0000 (21:30 +0100)]
[3.11] gh-101100: Fix Sphinx warning in `library/gettext.rst` (GH-112668) (#112673)
gh-101100: Fix Sphinx warning in `library/gettext.rst` (GH-112668)
(cherry picked from commit
489aeac3a2d3b347ff033334688e2f44eec7944a )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sun, 3 Dec 2023 17:39:10 +0000 (18:39 +0100)]
[3.11] gh-101100: Fix most Sphinx nitpicks in `inspect.rst` (GH-112662) (#112667)
gh-101100: Fix most Sphinx nitpicks in `inspect.rst` (GH-112662)
(cherry picked from commit
45650d1c479a8b0370f126d821718dd3c502f333 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sun, 3 Dec 2023 16:34:37 +0000 (17:34 +0100)]
[3.11] gh-66819: More IDLE htest updates(2) (GH-112642) (#112644)
Examine and update spec -- callable pairs.
Revise run method.
(cherry picked from commit
3855b45874d5f8eb92a4957fb9de6fdce63eb760 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 3 Dec 2023 15:20:51 +0000 (16:20 +0100)]
[3.11] Fix link to 'The Perils of Floating Point', on the tutorial (GH-112499) (GH-112663)
Use author link to 'The Perils of Floating Point'.
(cherry picked from commit
c27b09c81368bc3b756e94a79a39307ce44a4a2c )
Co-authored-by: Marco Aurélio A. Barbosa <aureliobarbosa@gmail.com>
Alex Waygood [Sun, 3 Dec 2023 12:01:33 +0000 (12:01 +0000)]
[3.11] Run more `inspect.rst` code snippets in CI (#112654) (#112656)
(cherry-picked from commit
4ed46d224401243399b41c7ceef4532bd249da27 )
Miss Islington (bot) [Sun, 3 Dec 2023 11:35:21 +0000 (12:35 +0100)]
[3.11] [3.12] gh-112316: improve docs for `inspect.signature` and `inspect.Signature` (GH-112631) (GH-112649) (#112652)
[3.12] gh-112316: improve docs for `inspect.signature` and `inspect.Signature` (GH-112631) (GH-112649)
(cherry-picked from commit
fc9e24b01fb7da4160b82cef26981d72bb678c13 )
(cherry picked from commit
6221482f0c459c2e7dbd946265069246a400072a )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sun, 3 Dec 2023 00:58:13 +0000 (01:58 +0100)]
[3.11] [3.12] gh-112618: Make Annotated cache typed (GH-112619) (GH-112628) (#112633)
[3.12] gh-112618: Make Annotated cache typed (GH-112619) (GH-112628)
(cherry picked from commit
2a378ca2efcb91db4b04fb4e052424fd610ffbc9 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Alex Waygood [Sat, 2 Dec 2023 22:50:16 +0000 (22:50 +0000)]
[3.11] gh-112316: Improve docs of `inspect.signature` and `Signature.from_callable` (#112317) (#112630)
(cherry-picked from commit
a74daba7ca )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 1 Dec 2023 19:09:00 +0000 (20:09 +0100)]
[3.11] [3.12] gh-109413: libregrtest: Backport `.py`-file changes from GH-112558 (GH-112605) (#112607)
[3.12] gh-109413: libregrtest: Backport `.py`-file changes from GH-112558 (GH-112605)
(cherry picked from commit
acc62db8af4e472a4922c10b91c60c36c49a5f79 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Fri, 1 Dec 2023 17:28:09 +0000 (18:28 +0100)]
[3.11] [3.12] gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (GH-112586) (GH-112602) (#112603)
[3.12] gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (GH-112586) (GH-112602)
gh-109413: libregrtest: enable mypy's `--strict-optional` check on most files (GH-112586)
(cherry picked from commit
36dbebed44785579034ffb1a59f0a1a5b987c9bf )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Alexey Izbyshev [Fri, 1 Dec 2023 15:44:03 +0000 (18:44 +0300)]
[3.11] bpo-35191: Fix unexpected integer truncation in socket.setblocking() (GH-10415)
On platforms with 64-bit long, socket.setblocking(x) treated all x
which lower 32 bits are zero as False due to integer truncation.
Reported by ubsan.
Miss Islington (bot) [Fri, 1 Dec 2023 14:43:09 +0000 (15:43 +0100)]
[3.11] gh-109413: regrtest: add WorkerRunTests class (GH-112588) (#112594)
gh-109413: regrtest: add WorkerRunTests class (GH-112588)
(cherry picked from commit
f8ff80f63536e96b004d29112452a8f1738fde37 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 1 Dec 2023 14:18:09 +0000 (15:18 +0100)]
[3.11] gh-82565: Add tests for pickle and unpickle with bad files (GH-16606) (GH-112592)
(cherry picked from commit
058444308abee79bb1b3358883adfa8c97bd043a )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Serhiy Storchaka [Fri, 1 Dec 2023 08:17:20 +0000 (10:17 +0200)]
[3.11] gh-104231: Add more tests for str(), repr(), ascii(), and bytes() (GH-112551) (GH-112556)
(cherry picked from commit
2223899adce858a09ebeaaf82111e6cda9b42415 )
Miss Islington (bot) [Fri, 1 Dec 2023 07:22:07 +0000 (08:22 +0100)]
[3.11] gh-66819: More IDLE htest updates (GH-112574) (#112576)
Revise htest.py docstring and move 2 specs to alphabetical position.
(cherry picked from commit
e44f1940bd6d2ba4a3f8ac4585b3cf4f9cb93e49 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 30 Nov 2023 08:29:23 +0000 (09:29 +0100)]
[3.11] IDLE: fix config_key htest (GH-112545) (#112547)
Change 'Dialog' to 'Window' in two places to match the name of the config_key class being tested.
(cherry picked from commit
81261fa67ff82b03c255733b0d1abbbb8a228187 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 29 Nov 2023 17:51:00 +0000 (18:51 +0100)]
[3.11] gh-112509: Fix keys being present in both required_keys and optional_keys in TypedDict (GH-112512) (#112531)
(cherry picked from commit
403886942376210662610627b01fea6acd77d331 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Wed, 29 Nov 2023 15:56:20 +0000 (16:56 +0100)]
[3.11] gh-110930: Correct book title by Alan D. Moore (GH-112490) (#112524)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 28 Nov 2023 09:43:38 +0000 (10:43 +0100)]
[3.11] gh-112431: Unconditionally call `hash -r` (GH-112432) (GH-112492)
gh-112431: Unconditionally call `hash -r` (GH-112432)
The `activate` script calls `hash -r` in two places to make sure the shell picks
up the environment changes the script makes. Before that, it checks to
see if the shell running the script is bash or zsh.
`hash -r` is specified by POSIX and is not exclusive to bash and zsh.
This guard prevents the script from calling `hash -r` in other
`GH-!/bin/sh`-compatible shells like dash.
(cherry picked from commit
a194938f33a71e727e53490815bae874eece1460 )
Co-authored-by: James Morris <6653392+J-M0@users.noreply.github.com>
Miss Islington (bot) [Tue, 28 Nov 2023 06:39:47 +0000 (07:39 +0100)]
[3.11] gh-112105: Make completer delims work on libedit (gh-112106) (gh-112488)
gh-112105: Make completer delims work on libedit (gh-112106)
(cherry picked from commit
2df26d83486b8f9ac6b7df2a9a4669508aa61983 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Tue, 28 Nov 2023 00:21:18 +0000 (01:21 +0100)]
[3.11] Docs: fix markup for `importlib.machinery.NamespaceLoader` (GH-112479) (#112482)
Docs: fix markup for `importlib.machinery.NamespaceLoader` (GH-112479)
(cherry picked from commit
2e632fa07d13a58be62f59be4e656ad58b378f9b )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Gregory P. Smith [Mon, 27 Nov 2023 23:54:21 +0000 (15:54 -0800)]
[3.11] Backport PR #112477: correct socket AF_PACKET docs (#112478)
Backport PR #112477: correct socket AF_PACKET docs
Network byte order is not involved in the `int` on the Python side.
That happens under the hood.
Correctly use the term addresses instead of packets.
Miss Islington (bot) [Mon, 27 Nov 2023 20:14:30 +0000 (21:14 +0100)]
[3.11] gh-68166: Tkinter: Add tests and examples for element_create() (GH-111453) (GH-111858)
* Remove mention of "vsapi" element type from the documentation.
* Add tests for element_create() and other ttk.Style methods.
* Add examples for element_create() in the documentation.
(cherry picked from commit
005d1e8fc81539c60c6b21ebba34de3edd5bb232 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 27 Nov 2023 19:05:20 +0000 (20:05 +0100)]
[3.11] gh-112387: Fix error positions for decoded strings with backwards tokenize errors (GH-112409) (#112469)
gh-112387: Fix error positions for decoded strings with backwards tokenize errors (GH-112409)
(cherry picked from commit
45d648597b1146431bf3d91041e60d7f040e70bf )
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 27 Nov 2023 18:56:27 +0000 (19:56 +0100)]
[3.11] gh-112388: Fix an error that was causing the parser to try to overwrite tokenizer errors (GH-112410) (#112467)
gh-112388: Fix an error that was causing the parser to try to overwrite tokenizer errors (GH-112410)
(cherry picked from commit
2c8b19174274c183eb652932871f60570123fe99 )
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Serhiy Storchaka [Mon, 27 Nov 2023 18:46:34 +0000 (20:46 +0200)]
[3.11] bpo-41422: Visit the Pickler's and Unpickler's memo in tp_traverse (GH-21664) (GH-112465)
(cherry picked from commit
967f2a3052c2d22e31564b428a9aa8cc63dc2a9f )
Co-authored-by: kale-smoothie <34165060+kale-smoothie@users.noreply.github.com>
Serhiy Storchaka [Mon, 27 Nov 2023 18:11:09 +0000 (20:11 +0200)]
[3.11] gh-112438: Fix support of format units with the "e" prefix in nested tuples in PyArg_Parse (gh-112439) (GH-112461)
(cherry picked from commit
4eea1e82369fbf7a795d1956e7a8212a1b58009f )
Serhiy Storchaka [Mon, 27 Nov 2023 17:41:05 +0000 (19:41 +0200)]
[3.11] gh-84443: SSLSocket.recv_into() now support buffer protocol with itemsize != 1 (GH-20310) (GH-112459)
It is also no longer use __len__().
(cherry picked from commit
812360fddda86d7aff5823f529ab720f57ddc411 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Mon, 27 Nov 2023 15:03:45 +0000 (16:03 +0100)]
[3.11] GH-101100: Fix reference warnings for ``socket`` methods (GH-110114) (#112456)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 27 Nov 2023 09:34:35 +0000 (10:34 +0100)]
[3.11] Docs: fix typo in doc for sqlite3.Cursor.execute (GH-112442) (#112445)
Docs: fix typo in doc for sqlite3.Cursor.execute (GH-112442)
(cherry picked from commit
fb79e1ed4a985a487a02bb8585cc1bd2933dfa7c )
Co-authored-by: Tom Levy <tomlevy93@gmail.com>
Hugo van Kemenade [Sun, 26 Nov 2023 12:22:17 +0000 (14:22 +0200)]
[3.11] gh-101100: Fix Sphinx reference warnings (GH-112416) (#112422)
Miss Islington (bot) [Sat, 25 Nov 2023 22:26:22 +0000 (23:26 +0100)]
[3.11] gh-112331: Fix reference manual description of attribute lookup mechanics (gh-112375) (gh-112413)
Hugo van Kemenade [Sat, 25 Nov 2023 19:26:05 +0000 (21:26 +0200)]
[3.11] gh-101100 : Fix Sphinx warnings in `library/doctest.rst` (GH-112399) (#112404)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sat, 25 Nov 2023 17:39:16 +0000 (18:39 +0100)]
[3.11] gh-94722: fix DocTest.__eq__ for case of no line number on one side (GH-112385) (#112401)
gh-94722: fix DocTest.__eq__ for case of no line number on one side (GH-112385)
(cherry picked from commit
fbb9027a037ff1bfaf3f596df033ca45743ee980 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Sat, 25 Nov 2023 08:00:44 +0000 (09:00 +0100)]
[3.11] gh-101100: Define `_tkinter` module to fix references (GH-112382) (#112393)
gh-101100: Define `_tkinter` module to fix references (GH-112382)
Define _tkinter module to fix references
(cherry picked from commit
6b961b8ceaba372b78d03feaceb4837bf7236694 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 25 Nov 2023 07:59:28 +0000 (08:59 +0100)]
[3.11] gh-101100: Define `test.regrtest` module to fix references (GH-112381) (#112391)
gh-101100: Define `test.regrtest` module to fix references (GH-112381)
Define test.regrtest module to fix references
(cherry picked from commit
d525d01e2794e7e736527eaa7ee309ca1252f5bd )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 24 Nov 2023 18:15:42 +0000 (19:15 +0100)]
[3.11] gh-59254: mention in open() doc that line buffering is for writing (GH-112318) (#112379)
gh-59254: mention in open() doc that line buffering is for writing (GH-112318)
(cherry picked from commit
fafae08cc7caa25f2bd6b29106b50ef76c3e296f )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Thu, 23 Nov 2023 21:21:49 +0000 (22:21 +0100)]
[3.11] Remove bogus annotations from the descriptor howto guide (gh-112349) (gh-112350)
Miss Islington (bot) [Wed, 22 Nov 2023 05:41:51 +0000 (06:41 +0100)]
[3.11] Fix docstring and var name of itertools recipe (GH-112113) (#112311)
Fix docstring and var name of itertools recipe (GH-112113)
`prepend()` works with arbitrary iterables, not only iterators. In fact,
the example given uses a `list`, which is iterable, but not an iterator.
(cherry picked from commit
6c47eaccfa2550c140a24bc6e520d968731d9689 )
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Miss Islington (bot) [Tue, 21 Nov 2023 08:29:34 +0000 (09:29 +0100)]
[3.11] gh-110950: add upstream Tk fixes to macOS installer. (GH-111041) (#112293)
Add upstream Tk patches for three problems affecting tkinter users:
- Update macOS installer to include a fix accepted by upstream Tcl/Tk
for a crash encountered after the first :meth:`tkinter.Tk` instance
is destroyed. (gh-92603)
- Update macOS installer to include an upstream Tcl/Tk fix
for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383)
- Update macOS installer to include an upstream Tcl/Tk fix for the
``Secure coding is not enabled for restorable state!`` warning
encountered in Tkinter on macOS 14 Sonoma. (gh-110950)
(cherry picked from commit
d67f947c72af8a215db2fd285e5de9b1e671fde1 )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Co-authored-by: Ned Deily <nad@python.org>
DPR [Mon, 20 Nov 2023 23:12:17 +0000 (07:12 +0800)]
[3.11] gh-109538: Catch closed loop runtime error and issue warning (GH-111983) (#112141)
Issue a ResourceWarning instead.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
(cherry picked from commit
e0f512797596282bff63260f8102592aad37cdf1 )
Nikita Sobolev [Mon, 20 Nov 2023 09:04:38 +0000 (12:04 +0300)]
[3.11] gh-112266: Remove `(if defined)` part from `__dict__` and `__weakref__` docstrings (GH-112268) (#112276)
Miss Islington (bot) [Sun, 19 Nov 2023 23:25:40 +0000 (00:25 +0100)]
[3.11] gh-73561: Omit interface scope from IPv6 when used as Host header (GH-93324) (#112273)
gh-73561: Omit interface scope from IPv6 when used as Host header (GH-93324)
Omit the `@interface_scope` from an IPv6 address when used as Host header by `http.client`.
---------
(cherry picked from commit
ce1096f974d3158a92e050f9226700775b8db398 )
[Google LLC]
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
Miss Islington (bot) [Sun, 19 Nov 2023 12:29:28 +0000 (13:29 +0100)]
[3.11] gh-110383: Explained which error message is generated when there is an unhandled exception (GH-111574) (#112265)
Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 19 Nov 2023 10:02:49 +0000 (11:02 +0100)]
[3.11] gh-110383: Fix documentation profile cumtime fix (GH-112221) (#112263)
Co-authored-by: Alex Ptakhin <me@aptakhin.name>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 19 Nov 2023 06:59:56 +0000 (07:59 +0100)]
[3.11] IDLE: Fix test_debugger bug and buildbot failures (GH-112258) (#112260)
IDLE: Fix test_debugger bug and buildbot failures (GH-112258)
Missing "requires('gui')" causes Tk() to fail when no gui.
This caused CI Hypothesis test to fail, but I did not understand
the its error message. Then buildbots failed.
IdbTest failed on draft Bdb replacement because so different.
Simplified version works on old and new.
(cherry picked from commit
14fd86a59d0d91fe72641efeb14a59d99127dec3 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 19 Nov 2023 04:34:54 +0000 (05:34 +0100)]
[3.11] gh-79871: IDLE - Fix and test debugger module (GH-11451) (#112257)
Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes.
Expand test_debugger coverage from 19% to 66%.
---------
(cherry picked from commit
adedcfa06b553242d8033f6d9bebbcb3bc0dbb4d )
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Nikita Sobolev [Sat, 18 Nov 2023 11:13:55 +0000 (14:13 +0300)]
[3.11] gh-112155: Run `typing.py` doctests during tests (GH-112156) (#112231)
Miss Islington (bot) [Fri, 17 Nov 2023 18:14:20 +0000 (19:14 +0100)]
[3.11] gh-112194: Convert more examples to doctests in `typing.py` (GH-112195) (#112209)
gh-112194: Convert more examples to doctests in `typing.py` (GH-112195)
(cherry picked from commit
949b2cc6eae6ef4f3312dfd4e2650a138446fe77 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Fri, 17 Nov 2023 01:11:39 +0000 (02:11 +0100)]
[3.11] gh-112165: Fix typo in `__main__.py` (GH-112183) (#112185)
gh-112165: Fix typo in `__main__.py` (GH-112183)
Change '[2]' to '[1]' to get second argument.
(cherry picked from commit
8cd70eefc7f3363cfa0d43f34522c3072fa9e160 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 16 Nov 2023 17:10:02 +0000 (18:10 +0100)]
[3.11] gh-111811: Fix test_recursive_repr for WASI (GH-112130) (#112132)
gh-111811: Fix test_recursive_repr for WASI (GH-112130)
(cherry picked from commit
7218bac8c84115a8e9a18a4a8f3146235068facb )
Co-authored-by: Kushal Das <mail@kushaldas.in>
Miss Islington (bot) [Thu, 16 Nov 2023 12:34:21 +0000 (13:34 +0100)]
[3.11] gh-110812: Isolating Extension Modules HOWTO: List GC-related gotchas (GH-111504) (GH-112147)
gh-110812: Isolating Extension Modules HOWTO: List GC-related gotchas (GH-111504)
(cherry picked from commit
985679f05d1b72965bfbed99d1499c22815375e4 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Petr Viktorin [Thu, 16 Nov 2023 12:07:53 +0000 (13:07 +0100)]
[3.11] gh-102837: more tests for the math module (GH-111930)(GH-102523) (GH-112030) (GH-112041)
[3.12] gh-102837: more tests for the math module (GH-111930)(GH-102523) (GH-112030)
* gh-102837: improve test coverage for math module (GH-102523)
(Only the test changes from GH-102523 are cherry-picked)
- input checks for math_1(L989), math_1a(L1023), math_2(L1064,L1071), hypot(L2682), log(L2307), ldexp(L2168), ceil(L1165), floor(L1236,L1239) and dist(L2587,L2588,L2628).
- improve fsum coverage for exceptional cases (L1433,L1438,L1451,L1497), ditto fmod(L2378)
(all line numbers are wrt the main branch at
5e6661bce9 )
* gh-102837: more tests for the math module (GH-111930)
Add tests to improve coverage:
* fsum: L1369, L1379, L1383, L1412
* trunc: L2081
* log: L2267
* dist: L2577, L2579
* hypot: L2632
* (not cherry-picked for 3.11: sumprod)
* pow: L2982
* prod: L3294, L3308, L3318-3330
// line numbers wrt to
9dc4fb8204
(cherry picked from commit
c61de456db0186b65d479d41e84127832205d30d )
---------
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
(cherry picked from commit
c6aea46a71d158f993cc723c14b4bf7982b73a2a )
Hugo van Kemenade [Thu, 16 Nov 2023 00:39:30 +0000 (02:39 +0200)]
[3.11] gh-111062: CI: Move OS test jobs to reusable workflows (gh-111570)
CI: Move OS test jobs to reusable workflows
Co-authored-by: Donghee Na <donghee.na@python.org>
Miss Islington (bot) [Wed, 15 Nov 2023 14:20:18 +0000 (15:20 +0100)]
[3.11] gh-111942: Fix crashes in TextIOWrapper.reconfigure() (GH-111976) (GH-112059)
* Fix crash when encoding is not string or None.
* Fix crash when both line_buffering and write_through raise exception
when converted ti int.
* Add a number of tests for constructor and reconfigure() method
with invalid arguments.
(cherry picked from commit
ee06fffd38cb51ce1c045da9d8336d9ce13c318a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 15 Nov 2023 05:20:17 +0000 (06:20 +0100)]
[3.11] Docs: Add the time to the HTML last updated format (GH-110091) (#112103)
Docs: Add the time to the HTML last updated format (GH-110091)
(cherry picked from commit
6c214dea7c503eb42bd130d43e8880f39bff0350 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 14 Nov 2023 12:25:38 +0000 (13:25 +0100)]
[3.11] gh-110944: Move pty helper to test.support and add basic pdb completion test (GH-111826) (GH-112025)
gh-110944: Move pty helper to test.support and add basic pdb completion test (GH-111826)
(cherry picked from commit
1c7ed7e9ebc53290c831d7b610219fa737153a1b )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Mon, 13 Nov 2023 19:50:56 +0000 (20:50 +0100)]
[3.11] gh-112007: Re-organize help utility intro message (GH-112017) (#112048)
gh-112007: Re-organize help utility intro message (GH-112017)
Most important: move how-to-quit sentence to the end and mention 'q'.
Re-group the other sentences and improve some wording.
---------
(cherry picked from commit
b28bb130bbc2ad956828819967d83e06d30a65c5 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Alex Waygood [Mon, 13 Nov 2023 14:01:17 +0000 (14:01 +0000)]
[3.11] gh-111681: minor fix to a typing doctest (#111682) (#112037)
Hugo van Kemenade [Mon, 13 Nov 2023 08:58:43 +0000 (10:58 +0200)]
[3.11] Docs: Add `make htmllive` to rebuild and reload HTML files in your browser (GH-111900) (#112023)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>