]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Wed, 14 Feb 2024 10:48:10 +0000 (11:48 +0100)]
[3.11] ftplib docs: `timeout` doesn't have to be a whole number (GH-115443) (#115446)
ftplib docs: `timeout` doesn't have to be a whole number (GH-115443)
(cherry picked from commit
3fd2ad8241a61e75b2cd33c697af276863efbb51 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Wed, 14 Feb 2024 10:24:54 +0000 (11:24 +0100)]
[3.11] gh-113437: Update documentation about PyUnicode_AsWideChar() function (GH-113455) (GH-115408)
(cherry picked from commit
5719aa23ab7f1c7a5f03309ca4044078a98e7b59 )
Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
Hugo van Kemenade [Wed, 14 Feb 2024 07:21:29 +0000 (09:21 +0200)]
[3.11] gh-115383: Use runner version to compute config.cache key (GH-115409) (#115428)
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 13 Feb 2024 16:16:22 +0000 (17:16 +0100)]
[3.11] gh-115405: add versionadded tag for co_qualname in code objects documentation (GH-115411) (#115413)
gh-115405: add versionadded tag for co_qualname in code objects documentation (GH-115411)
(cherry picked from commit
de07941729b8899b187b8ef9690f9a74b2d6286b )
Co-authored-by: Christophe Papazian <114495376+christophe-papazian@users.noreply.github.com>
Serhiy Storchaka [Tue, 13 Feb 2024 10:40:40 +0000 (12:40 +0200)]
[3.11] gh-115252: Fix test_enum with -OO mode again (GH-115334) (GH-115397)
(cherry picked from commit
ca3604a3e33d833ef698b44a4b82c5bc8c771fcb )
John Belmonte [Tue, 13 Feb 2024 08:38:06 +0000 (17:38 +0900)]
[3.11] gh-114563: C decimal falls back to pydecimal for unsupported format strings (GH-114879) (GH-115384)
Immediate merits:
* eliminate complex workarounds for 'z' format support
(NOTE: mpdecimal recently added 'z' support, so this becomes
efficient in the long term.)
* fix 'z' format memory leak
* fix 'z' format applied to 'F'
* fix missing 'GH-' format support
Suggested and prototyped by Stefan Krah.
Fixes gh-114563, gh-91060
(cherry picked from commit
72340d15cdfdfa4796fdd7c702094c852c2b32d2 )
(cherry picked from commit
09c98e4633848ce05df8621f41eb09954b55217a )
Co-authored-by: Stefan Krah <skrah@bytereef.org>
Miss Islington (bot) [Tue, 13 Feb 2024 07:06:35 +0000 (08:06 +0100)]
[3.11] Update "Using Python on a Mac" (GH-115024) (#115388)
Update "Using Python on a Mac" (GH-115024)
(cherry picked from commit
0a6e1a4119864bec0247b04a5c99fdd9799cd8eb )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 13 Feb 2024 05:30:54 +0000 (06:30 +0100)]
[3.11] gh-115317: Rewrite changelog filter to use vanilla JavaScript (GH-115324) (#115373)
gh-115317: Rewrite changelog filter to use vanilla JavaScript (GH-115324)
(cherry picked from commit
341d7874f063dcb141672b09f62c19ffedd0a557 )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Mon, 12 Feb 2024 21:25:47 +0000 (22:25 +0100)]
[3.11] gh-115233: Fix an example in the Logging Cookbook (GH-115325) (GH-115355) (GH-115357)
Also add more tests for LoggerAdapter.
Also support stacklevel in LoggerAdapter._log().
(cherry picked from commit
225856ef3e6c5e4f234ede1dd118b57f6e8f6d0e )
(cherry picked from commit
91822018eeba12a6c9eabbc748363b2fd4291b30 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 12 Feb 2024 20:21:18 +0000 (21:21 +0100)]
[3.11] gh-115285: Fix `test_dataclasses` with `-OO` mode (GH-115286) (#115358)
gh-115285: Fix `test_dataclasses` with `-OO` mode (GH-115286)
(cherry picked from commit
4297d7301b97aba2e0df9f9cc5fa4010e53a8950 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 12 Feb 2024 19:30:22 +0000 (20:30 +0100)]
[3.11] Remove stray backtick in NEWS entry (GH-115356) (#115363)
Remove stray backtick in NEWS entry (GH-115356)
(cherry picked from commit
a82fbc13d0e352b9af7d7ffbef4bc04cf635f07f )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Hugo van Kemenade [Mon, 12 Feb 2024 14:37:28 +0000 (16:37 +0200)]
[3.11] gh-101100: Fix Sphinx warnings in `whatsnew/2.7.rst` and related (GH-115319) (#115331)
Miss Islington (bot) [Mon, 12 Feb 2024 14:22:41 +0000 (15:22 +0100)]
[3.11] Add missing sections to blurbs (GH-114553) (#115337)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Serhiy Storchaka [Mon, 12 Feb 2024 11:45:22 +0000 (13:45 +0200)]
[3.11] gh-115198: Fix support of Docutils >= 0.19 in distutils (GH-115220)
Skip Montanaro [Mon, 12 Feb 2024 10:54:44 +0000 (04:54 -0600)]
[3.11] gh-101100: Clean up Doc/c-api/exceptions.rst and Doc/c-api/sys.rst (GH-114825) (GH-115311)
(cherry picked from commit
e1552fd19de17e7a6daa3c2a6d1ca207bb8eaf8e )
Nikita Sobolev [Sun, 11 Feb 2024 15:19:59 +0000 (18:19 +0300)]
[3.11] gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) (#115279)
(cherry picked from commit
33f56b743285f8419e92cfabe673fa165165a580 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Serhiy Storchaka [Sun, 11 Feb 2024 15:19:43 +0000 (17:19 +0200)]
[3.11] [3.12] gh-97959: Fix rendering of routines in pydoc (GH-113941) (GH-115296) (GH-115302)
* Class methods no longer have "method of builtins.type instance" note.
* Corresponding notes are now added for class and unbound methods.
* Method and function aliases now have references to the module or the
class where the origin was defined if it differs from the current.
* Bound methods are now listed in the static methods section.
* Methods of builtin classes are now supported as well as methods of
Python classes.
(cherry picked from commit
2939ad02be62110ffa2ac6c4d9211c85e1d1720f )
(cherry picked from commit
cfb79caaab6c4823b6b186aabab642c4dab3927f )
Miss Islington (bot) [Sun, 11 Feb 2024 14:51:32 +0000 (15:51 +0100)]
[3.11] gh-113468: Remove the "_new_ suffix from class names in pydocfodder (GH-113469) (GH-115300)
(cherry picked from commit
8a3d0e4a661e6c27e4c17c818ce4187a36579e5f )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Sun, 11 Feb 2024 14:29:23 +0000 (16:29 +0200)]
[3.11] gh-99430: Remove duplicated tests for old-styled classes (GH-99432) (GH-115298)
python 1 & 2 were a loong time ago.
(cherry picked from commit
d329f859b9cea9e6fa76fdf03927f659cf17786b )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Serhiy Storchaka [Sun, 11 Feb 2024 12:03:48 +0000 (14:03 +0200)]
[3.11] gh-115011: Improve support of __index__() in setters of members with unsigned integer type (GH-115029) (GH-115295)
Setters for members with an unsigned integer type now support
the same range of valid values for objects that has a __index__()
method as for int.
Previously, Py_T_UINT, Py_T_ULONG and Py_T_ULLONG did not support
objects that has a __index__() method larger than LONG_MAX.
Py_T_ULLONG did not support negative ints. Now it supports them and
emits a RuntimeWarning.
(cherry picked from commit
d9d6909697501a2604d5895f9f88aeec61274ab0 )
Miss Islington (bot) [Sun, 11 Feb 2024 11:04:02 +0000 (12:04 +0100)]
[3.11] gh-79382: Fix recursive glob() with trailing "**" (GH-115134) (GH-115291)
Trailing "**" no longer allows to match files and non-existing paths in
recursive glob().
(cherry picked from commit
aeffc7f8951e04258f0fd8cadfa6cd8b704730f6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Sun, 11 Feb 2024 10:42:28 +0000 (12:42 +0200)]
[3.11] gh-115172: Fix explicit index extries for the C API (GH-115173) (GH-115293)
(cherry picked from commit
573acb30f22a84c0f2c951efa002c9946e29b6a3 )
Miss Islington (bot) [Sun, 11 Feb 2024 10:38:04 +0000 (11:38 +0100)]
[3.11] gh-115133: Fix tests for XMLPullParser with Expat 2.6.0 (GH-115164) (GH-115289)
Feeding the parser by too small chunks defers parsing to prevent
CVE-2023-52425. Future versions of Expat may be more reactive.
(cherry picked from commit
4a08e7b3431cd32a0daf22a33421cd3035343dc4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 11 Feb 2024 09:28:03 +0000 (10:28 +0100)]
[3.11] gh-101100: Fix dangling refs in bdb.rst (GH-114983) (#115284)
gh-101100: Fix dangling refs in bdb.rst (GH-114983)
(cherry picked from commit
1b895914742d20ccebd1b56b1b0936b7e00eb95e )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Nikita Sobolev [Sun, 11 Feb 2024 09:14:25 +0000 (12:14 +0300)]
[3.11] gh-115274: Fix direct invocation of testmock/testpatch.py (GH-115275) (#115281)
(cherry picked from commit
f8e9c57067e32baab4ed2fd824b892c52ecb7225 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 11 Feb 2024 08:57:58 +0000 (09:57 +0100)]
[3.11] gh-115249: Fix `test_descr` with `-OO` mode (GH-115250) (#115278)
gh-115249: Fix `test_descr` with `-OO` mode (GH-115250)
(cherry picked from commit
1f23837277e604f41589273aeb3a10377d416510 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 11 Feb 2024 07:58:51 +0000 (08:58 +0100)]
[3.11] gh-115254: Fix `test_property` with `-00` mode (GH-115255) (#115262)
(cherry picked from commit
b70a68fbd6b72a25b5ef430603e39c9e40f40d29 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 11 Feb 2024 07:53:17 +0000 (08:53 +0100)]
[3.11] gh-114670: Fix `_testbuffer` module initialization (GH-114672) (#115271)
(cherry picked from commit
3a5b38e3b465e00f133ff8074a2d4afb1392dfb5 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 10 Feb 2024 14:04:32 +0000 (15:04 +0100)]
[3.11] gh-115059: Remove debugging code in test_io (GH-115240) (GH-115245)
(cherry picked from commit
597fad07f7bf709ac7084ac20aa3647995759b01 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 10 Feb 2024 08:54:43 +0000 (09:54 +0100)]
[3.11] gh-114552: Update `__dir__` method docs: it allows returning an iterable (GH-114662) (#115235)
gh-114552: Update `__dir__` method docs: it allows returning an iterable (GH-114662)
(cherry picked from commit
e19103a346f0277c44a43dfaebad9a5aa468bf1e )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Serhiy Storchaka [Fri, 9 Feb 2024 23:23:29 +0000 (01:23 +0200)]
[3.11] gh-115198: Fix test_check_metadata_deprecation in test_distutils (#115200)
* [3.11] gh-115198: Fix test_check_metadata_deprecation in test_distutils
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 9 Feb 2024 22:43:24 +0000 (23:43 +0100)]
[3.11] gh-115165: Fix `typing.Annotated` for immutable types (GH-115213) (#115228)
gh-115165: Fix `typing.Annotated` for immutable types (GH-115213)
The return value from an annotated callable can raise any exception from
__setattr__ for the `__orig_class__` property.
(cherry picked from commit
564385612cdf72c2fa8e629a68225fb2cd3b3d99 )
Co-authored-by: dave-shawley <daveshawley@gmail.com>
Nikita Sobolev [Fri, 9 Feb 2024 20:09:59 +0000 (23:09 +0300)]
[3.11] gh-101100: Fix sphinx warnings in `library/enum.rst` (GH-114696) (GH-115209)
Miss Islington (bot) [Fri, 9 Feb 2024 14:18:01 +0000 (15:18 +0100)]
[3.11] Docs: correctly link to code objects (GH-115214) (#115217)
(cherry picked from commit
769d4448260aaec687d9306950225316f9faefce )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Fri, 9 Feb 2024 11:01:47 +0000 (12:01 +0100)]
[3.11] gh-115059: Flush the underlying write buffer in io.BufferedRandom.read1() (GH-115163) (GH-115206)
(cherry picked from commit
846fd721d518dda88a7d427ec3d2c03c45d9fa90 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 8 Feb 2024 22:19:11 +0000 (23:19 +0100)]
gh-115167: Exclude vcruntime140_threads.dll from Windows build output (GH-115176)
(cherry picked from commit
5914a211ef5542edd1f792c2684e373a42647b04 )
Co-authored-by: adang1345 <adang1345@gmail.com>
Miss Islington (bot) [Thu, 8 Feb 2024 22:02:45 +0000 (23:02 +0100)]
[3.11] gh-115106 docs: 'enum.Flag.__iter__()' did not exist prior to Python 3.11 (GH-115107) (GH-115118)
change versionchanged to versionadded
(cherry picked from commit
3f71c416c085cfaed49ef325f70eb374a4966256 )
Co-authored-by: Finite State Machine <38001514+finite-state-machine@users.noreply.github.com>
Miss Islington (bot) [Thu, 8 Feb 2024 09:18:16 +0000 (10:18 +0100)]
[3.11] gh-115136: Fix possible NULL deref in getpath_joinpath() (GH-115137) (ПР-115158)
(cherry picked from commit
9e90313320a2af2d9ff7049ed3842344ed236630 )
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Co-authored-by: Artem Chernyshev <62871052+dTenebrae@users.noreply.github.com>
Miss Islington (bot) [Thu, 8 Feb 2024 08:32:46 +0000 (09:32 +0100)]
[3.11] gh-115146: Fix typo in pickletools.py documentation (GH-115148) (GH-115156)
(cherry picked from commit
4a7f63869aa61b24a7cc2d33f8a5e5a7fd0d76a4 )
Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com>
Skip Montanaro [Wed, 7 Feb 2024 17:16:51 +0000 (11:16 -0600)]
[3.11] gh-101100: Fix Py_DEBUG dangling Sphinx references (#115003) (#115141)
gh-101100: Fix Py_DEBUG dangling Sphinx references (#115003)
(cherry picked from commit
d0322fdf2c1a7292a43959fe5a572d783b88a1c4 )
Miss Islington (bot) [Wed, 7 Feb 2024 09:36:27 +0000 (10:36 +0100)]
[3.11] gh-103224: Resolve paths properly in test_sysconfig (GH-103292) (GH-115101)
To pass tests when executed through a Python symlink.
(cherry picked from commit
71239d50b54c90afd3fdde260848e0c6d73a5c27 )
Co-authored-by: Artem Mukhin <artem.m.mukhin@gmail.com>
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Pablo Galindo [Tue, 6 Feb 2024 23:38:43 +0000 (23:38 +0000)]
Merge remote-tracking branch 'upstream/3.11' into 3.11
Pablo Galindo [Tue, 6 Feb 2024 23:38:18 +0000 (23:38 +0000)]
Post 3.11.8
Erlend E. Aasland [Tue, 6 Feb 2024 23:06:34 +0000 (00:06 +0100)]
[3.11] gh-115009: Update Windows installer to use SQLite 3.45.1 (#115065) (#115111)
(cherry picked from commit
11ac6f5354ec7a4da2a7e052d27d636b5a41c714 )
Pablo Galindo [Tue, 6 Feb 2024 21:20:31 +0000 (21:20 +0000)]
Python 3.11.8
Miss Islington (bot) [Tue, 6 Feb 2024 19:16:54 +0000 (20:16 +0100)]
[3.11] GH-gh-75705: Set unixfrom envelope in mailbox._mboxMMDF (GH-107117) (GH-115099)
(cherry picked from commit
76108b8b05040fc49a6bc50eb2e990576595c57c )
Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
Miss Islington (bot) [Tue, 6 Feb 2024 18:22:48 +0000 (19:22 +0100)]
[3.11] gh-46968: Fix invalid reference to Sound eXchange (SoX) 12.17.7 license (GH-115094) (GH-115095)
(cherry picked from commit
b39119916c0daaf5e5fdfec63e18ad97f29e2e72 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Tue, 6 Feb 2024 14:54:05 +0000 (15:54 +0100)]
[3.11] gh-111239: Update Windows build to use zlib 1.3.1 (GH-114877) (GH-115080)
gh-111239: Update Windows build to use zlib 1.3.1 (GH-114877)
(cherry picked from commit
618d7256e78da8200f6e2c6235094a1ef885dca4 )
Co-authored-by: Zachary Ware <zach@python.org>
Peter Lazorchak [Tue, 6 Feb 2024 13:58:30 +0000 (05:58 -0800)]
[3.11] gh-89811: Check for valid tp_version_tag in specializer (GH-115045)
* gh-89811: Check for valid tp_version_tag in specializer (GH-113558)
* gh-113937 Fix failures in type cache tests due to re-running (GH-113953)
* Update backported code for 3.11 specifically
Erlend E. Aasland [Tue, 6 Feb 2024 10:25:54 +0000 (11:25 +0100)]
[3.11] gh-115009: Update macOS installer to use SQLite 3.45.1 (#115066) (#115072)
(cherry picked from commit
13eb5215c9de9dd302f116ef0bca4ae23b02842b )
Co-authored-by: Ned Deily <nad@python.org>
Erlend E. Aasland [Tue, 6 Feb 2024 10:21:00 +0000 (11:21 +0100)]
[3.11] gh-115015: Argument Clinic: fix generated code for METH_METHOD methods without params (#115016) (#115069)
(cherry picked from commit
09096a1647913526a3d4fa69a9d2056ec82a8f37 )
Ned Deily [Tue, 6 Feb 2024 04:02:10 +0000 (23:02 -0500)]
[3.11] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.13. (GH-115057)
Also update multissltests to use 1.1.1w, 3.0.13, 3.1.5, and 3.2.1.
Miss Islington (bot) [Tue, 6 Feb 2024 02:16:32 +0000 (03:16 +0100)]
[3.11] gh-109991: Update macOS installer to use OpenSSL 3.0.13. (GH-115054)
(cherry picked from commit
638e811a3c54a81d8af5a4c08b9497d210823f78 )
Co-authored-by: Ned Deily <nad@python.org>
Zachary Ware [Tue, 6 Feb 2024 00:19:44 +0000 (18:19 -0600)]
[3.11] gh-109991: Update Windows build to use OpenSSL 3.0.13 (#115048)
(cherry picked from commit
01dceba13e872e9ca24b8e00a2b75db3d0d6c1a3 )
Serhiy Storchaka [Mon, 5 Feb 2024 21:04:11 +0000 (23:04 +0200)]
[3.11] gh-109475: Fix support of explicit option value "--" in argparse (GH-114814) (GH-115037)
For example "--option=--".
(cherry picked from commit
4aa4f0906df9fc9c6c6f6657f2c521468c6b1688 )
Miss Islington (bot) [Mon, 5 Feb 2024 20:29:29 +0000 (21:29 +0100)]
[3.11] gh-114967: Fix "Built-in Exceptions" documentation ambiguous wording (GH-114968) (#115034)
Change the somewhat vague "listed below" to "listed in this chapter" in Doc/library/exceptions.rst.
The exceptions are listed in multiple sections after two intermediate sections.
---------
(cherry picked from commit
750489cc774df44daa2c0d23e8a404fe62be93d1 )
Co-authored-by: HarryLHW <123lhw321@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Serhiy Storchaka [Mon, 5 Feb 2024 11:24:23 +0000 (13:24 +0200)]
[3.11] gh-114392: Improve test_capi.test_structmembers (GH-114393) (GH-115030)
Test all integer member types with extreme values and values outside of
the valid range. Test support of integer-like objects. Test warnings for
wrapped out values.
(cherry picked from commit
15f6f048a6ecdf0f6f4fc076d013be3d110f8ed6 )
Miss Islington (bot) [Mon, 5 Feb 2024 09:53:50 +0000 (10:53 +0100)]
[3.11] GH-69695: Update ``PyImport_ImportModule`` description (GH-103836) (GH-114924)
GH-69695: Update ``PyImport_ImportModule`` description (GH-103836)
(cherry picked from commit
9872855a31720f514b84373848b49fca09d66ecd )
Co-authored-by: patenaud <33957588+patenaud@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 5 Feb 2024 04:18:02 +0000 (05:18 +0100)]
[3.11] Remove bogus syntax error marker in csv doc (GH-115017) (#115019)
(cherry picked from commit
39ec7fbba84663ab760853da2ac422c2e988d189 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Travis Howse [Mon, 5 Feb 2024 04:01:37 +0000 (14:01 +1000)]
[3.11] gh-114887 Reject only sockets of type SOCK_STREAM in create_da… (#114979)
Also improve exception message.
(cherry picked from commit
94ec2b9c9ce898723c3fe61fbc64d6c8f4f68700 )
Co-authored-by: Donghee Na <donghee.na92@gmail.com>
Alex Waygood [Sun, 4 Feb 2024 20:00:05 +0000 (20:00 +0000)]
[3.11] Bump ruff to 0.2.0 (#114932) (#115008)
Miss Islington (bot) [Sun, 4 Feb 2024 19:02:10 +0000 (20:02 +0100)]
[3.11] gh-113803: Fix inaccurate documentation for shutil.move when dst is an existing directory (GH-113837) (#115007)
* fix the usage of dst and destination in shutil.move doc
* update shutil.move doc
(cherry picked from commit
da8f9fb2ea65cc2784c2400fc39ad8c800a67a42 )
Co-authored-by: Dai Wentao <dwt136@gmail.com>
Serhiy Storchaka [Sun, 4 Feb 2024 17:54:26 +0000 (19:54 +0200)]
[3.11] gh-114388: Fix warnings when assign an unsigned integer member (GH-114391) (GH-115002)
* Fix a RuntimeWarning emitted when assign an integer-like value that
is not an instance of int to an attribute that corresponds to a C
struct member of type T_UINT and T_ULONG.
* Fix a double RuntimeWarning emitted when assign a negative integer value
to an attribute that corresponds to a C struct member of type T_UINT.
(cherry picked from commit
3ddc5152550ea62280124c37d0b4339030ff7df4 )
Miss Islington (bot) [Sun, 4 Feb 2024 16:47:03 +0000 (17:47 +0100)]
[3.11] gh-113951: Tkinter: "tag_unbind(tag, sequence, funcid)" now only unbinds "funcid" (GH-113955) (GH-114998)
Previously, "tag_unbind(tag, sequence, funcid)" methods of Text and
Canvas widgets destroyed the current binding for "sequence", leaving
"sequence" unbound, and deleted the "funcid" command.
Now they remove only "funcid" from the binding for "sequence", keeping
other commands, and delete the "funcid" command.
They leave "sequence" unbound only if "funcid" was the last bound command.
(cherry picked from commit
7e42fddf608337e83b30401910d76fd75d5cf20a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 4 Feb 2024 16:16:57 +0000 (17:16 +0100)]
[3.11] gh-113280: Always close socket if SSLSocket creation failed (GH-114659) (GH-114996)
(cherry picked from commit
0ea366240b75380ed7568acbe95d72e481a734f7 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Miss Islington (bot) [Sun, 4 Feb 2024 14:32:42 +0000 (15:32 +0100)]
[3.11] gh-101100: Fix dangling references in pickle.rst (GH-114972) (#114992)
gh-101100: Fix dangling references in pickle.rst (GH-114972)
(cherry picked from commit
ec69e1d0ddc9906e0fb755a5234aeabdc96450ab )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Hugo van Kemenade [Sun, 4 Feb 2024 11:53:52 +0000 (13:53 +0200)]
[3.11] gh-101100: Fix Sphinx warnings from PEP 3108 stdlib re-organisation (GH-114327) (#114989)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Stéphane Bidoul [Sat, 3 Feb 2024 19:38:23 +0000 (20:38 +0100)]
[3.11] gh-114965: Updated bundled pip to 24.0 (gh-114966) (gh-114973)
Updated bundled pip to 24.0.
(cherry picked from commit
a4c298c1494b602a9650b597aad50b48e3fa1f41 )
Miss Islington (bot) [Sat, 3 Feb 2024 18:51:56 +0000 (19:51 +0100)]
[3.11] gh-101100: Fix Sphinx reference warnings in the glossary (GH-114729) (#114970)
gh-101100: Fix Sphinx reference warnings in the glossary (GH-114729)
(cherry picked from commit
ab76d37948fd506af44762dc1c3e32f27d1327a8 )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Sat, 3 Feb 2024 16:41:31 +0000 (17:41 +0100)]
[3.11] gh-114959: tarfile: do not ignore errors when extract a directory on top of a file (GH-114960) (GH-114964)
Also, add tests common to tarfile and zipfile.
(cherry picked from commit
96bce033c4a4da7112792ba335ef3eb9a3eb0da0 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 3 Feb 2024 15:48:29 +0000 (16:48 +0100)]
[3.11] gh-114955: Add clear to MutableSequence's mixin methods in document (gh-114956) (#114962)
gh-114955: Add clear to MutableSequence's mixin methods in document (gh-114956)
(cherry picked from commit
b4240fd68ecd2c22ec82ac549eabfe5fd35fab2a )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Miss Islington (bot) [Sat, 3 Feb 2024 15:23:21 +0000 (16:23 +0100)]
[3.11] Update LOGGING example taken from Django docs. (GH-114903) (#114952)
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Miss Islington (bot) [Sat, 3 Feb 2024 02:02:15 +0000 (03:02 +0100)]
[3.11] Normalize heading underline in multiprocessing.rst (GH-114923) (#114947)
This gets rid of the mildly confusing `>>>>>>>' underlines which look vaguely like `diff` punctuation.
(cherry picked from commit
00d7109075dfaadf438362c084e8a1890c53d4c8 )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Miss Islington (bot) [Fri, 2 Feb 2024 23:22:03 +0000 (00:22 +0100)]
[3.11] gh-114913: Add newline to subprocess doc (GH-114941) (#114943)
*creationflags* is a separate topic from *startupinfo*.
Start sentence with 'If given', like previous sentence.
(cherry picked from commit
1183f1e6bfba06ae6c8ea362f96e977bc288e627 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 2 Feb 2024 21:49:04 +0000 (22:49 +0100)]
[3.11] Correct timedelta description (GH-101417) (GH-114939)
It only represents the difference between two datetime or
date objects, not between two time objects.
(cherry picked from commit
73d20cafb54193c94577ca60df1ba0410b3ced74 )
Co-authored-by: John Belmonte <john@neggie.net>
Miss Islington (bot) [Fri, 2 Feb 2024 21:18:25 +0000 (22:18 +0100)]
[3.11] Fix indentation of "versionchanged" in datetime.rst (GH-114933) (GH-114936)
(cherry picked from commit
b27812d6320e35d62d91f1b3714be1e38021101a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 2 Feb 2024 21:06:35 +0000 (22:06 +0100)]
[3.11] gh-103360: Add link in stdtypes.rst to escape sequences in lexical_analysis.rst (GH-103638) (#114908)
(cherry picked from commit
d29f57f6036353b4e705a42637177442bf7e07e5 )
Co-authored-by: Justin Williams <97240811+juswil@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 2 Feb 2024 18:59:28 +0000 (19:59 +0100)]
[3.11] gh-114728: Fix documentation for comparison of objects in datetime module (GH-114749) (GH-114929)
(cherry picked from commit
c12240ed28aac6494750e00143bc550c4d6d8ad1 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 2 Feb 2024 13:13:00 +0000 (14:13 +0100)]
[3.11] gh-103820: IDLE: Do not interpret buttons 4/5 as scrolling on non-X11 (GH-103821) (GH-114902)
Also fix test_mousewheel: do not skip a check which was broken due to incorrect
delta on Aqua and XQuartz, and probably not because of `.update_idletasks()`.
(cherry picked from commit
d25d4ee60cc789a8b9c222859bb720ade1ab2e30 )
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Miss Islington (bot) [Fri, 2 Feb 2024 10:28:15 +0000 (11:28 +0100)]
[3.11] Move "format" param doc of shutil.make_archive() on its own paragraph (GH-103829) (GH-114898)
(cherry picked from commit
53339a0ef72fcfc15221792b117c4670b07a0b20 )
Co-authored-by: Michal Kaptur <kaptur.michal@gmail.com>
Miss Islington (bot) [Thu, 1 Feb 2024 20:35:29 +0000 (21:35 +0100)]
[3.11] gh-89891: Refer SharedMemory implementation as POSIX (GH-104678) (GH-114874)
It only uses POSIX API.
(cherry picked from commit
500ede01178a8063bb2a3c664172dffa1b40d7c9 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Thu, 1 Feb 2024 18:45:02 +0000 (19:45 +0100)]
[3.11] gh-101100: Fix sphinx warnings in `howto/logging.rst` (GH-114846) (#114872)
gh-101100: Fix sphinx warnings in `howto/logging.rst` (GH-114846)
(cherry picked from commit
dc01b919c721f43ad024ba444a5d19541370e581 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 1 Feb 2024 18:15:12 +0000 (19:15 +0100)]
[3.11] Correct description of inheriting from another class (GH-114660) (#114869)
"inherits <someclass>" grates to this reader. I think it should be "inherits from <someclass>".
(cherry picked from commit
c9c6e04380ffedd25ea2e582f9057ab9612960c9 )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Miss Islington (bot) [Thu, 1 Feb 2024 17:33:55 +0000 (18:33 +0100)]
[3.11] gh-105031: Clarify datetime documentation for ISO8601 (GH-105049) (GH-114867)
(cherry picked from commit
e9dab656380ec03d628979975646748330b76b9b )
Co-authored-by: Nicholas Hollander <31573882+nhhollander@users.noreply.github.com>
Miss Islington (bot) [Thu, 1 Feb 2024 12:25:08 +0000 (13:25 +0100)]
[3.11] gh-105089: Fix test_create_directory_with_write test failure in AIX (GH-105228) (GH-114861)
(cherry picked from commit
4dbb198d279a06fed74ea4c38f93d658baf38170 )
Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
Miss Islington (bot) [Thu, 1 Feb 2024 12:08:52 +0000 (13:08 +0100)]
[3.11] gh-107461 ctypes: Add a testcase for nested `_as_parameter_` lookup (GH-107462) (GH-114859)
(cherry picked from commit
0bf42dae7e73febc76ea96fd58af6b765a12b8a7 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Thu, 1 Feb 2024 09:40:46 +0000 (10:40 +0100)]
[3.11] Fix typos in ElementTree documentation (GH-108848) (GH-114855)
PI objects instead of comment objects.
(cherry picked from commit
de6f97cd3519c5d8528d8ca1bb00fce4e9969671 )
Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
Miss Islington (bot) [Thu, 1 Feb 2024 03:53:15 +0000 (04:53 +0100)]
[3.11] gh-114648: Add IndexError exception to tutorial datastructures list.pop entry (GH-114681) (#114842)
Remove redundant explanation of optional argument.
(cherry picked from commit
57c3e775df5a5ca0982adf15010ed80a158b1b80 )
Co-authored-by: srinivasan <shivnaren@gmail.com>
Miss Islington (bot) [Thu, 1 Feb 2024 01:55:45 +0000 (02:55 +0100)]
[3.11] CI: Test on macOS M1 (GH-114766) (#114835)
Test on macOS M1
(cherry picked from commit
854e2bc42340b22cdeea5d16ac8b1ef3762c6909 )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 1 Feb 2024 00:59:17 +0000 (01:59 +0100)]
[3.11] gh-109534: fix reference leak when SSL handshake fails (GH-114074) (#114830)
gh-109534: fix reference leak when SSL handshake fails (GH-114074)
(cherry picked from commit
80aa7b3688b8fdc85cd53d4113cb5f6ce5500027 )
Co-authored-by: Jamie Phan <jamie@ordinarylab.dev>
Miss Islington (bot) [Thu, 1 Feb 2024 00:50:58 +0000 (01:50 +0100)]
[3.11] gh-111112: Avoid potential confusion in TCP server example. (GH-111113) (#114832)
gh-111112: Avoid potential confusion in TCP server example. (GH-111113)
Improve misleading TCP server docs and example.
socket.recv(), as documented by the Python reference documentation,
returns at most `bufsize` bytes, and the underlying TCP protocol means
there is no guaranteed correspondence between what is sent by the client
and what is received by the server.
This conflation could mislead readers into thinking that TCP is
datagram-based or has similar semantics, which will likely appear to
work for simple cases, but introduce difficult to reproduce bugs.
(cherry picked from commit
a79a27242f75fc33416d4d135a4a542898d140e5 )
Co-authored-by: Aidan Holm <alfh@google.com>
Miss Islington (bot) [Wed, 31 Jan 2024 21:40:20 +0000 (22:40 +0100)]
[3.11] Add note to `sys.orig_argv` clarifying the difference from `sys.argv` (GH-114630) (#114822)
Add note to `sys.orig_argv` clarifying the difference from `sys.argv` (GH-114630)
(cherry picked from commit
1836f674c0d86ec3375189a550c8f4a52ff89ae8 )
Co-authored-by: Bradley Reynolds <bradley.reynolds@darbia.dev>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Miss Islington (bot) [Wed, 31 Jan 2024 12:32:50 +0000 (13:32 +0100)]
[3.11] gh-114790: Do not execute `workflows/require-pr-label.yml` on forks (GH-114791) (#114801)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Wed, 31 Jan 2024 12:03:08 +0000 (13:03 +0100)]
[3.11] gh-114737: Revert change to ElementTree.iterparse "root" attribute (GH-114755) (GH-114799)
Prior to gh-114269, the iterator returned by ElementTree.iterparse was
initialized with the root attribute as None. This restores the previous
behavior.
(cherry picked from commit
66f95ea6a65deff547cab0d312b8c8c8a4cf8beb )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Wed, 31 Jan 2024 09:41:00 +0000 (10:41 +0100)]
[3.11] gh-101100: Fix class reference in library/test.rst (GH-114769) (GH-114793)
The text clearly seems to be referencing `TestFuncAcceptsSequencesMixin`,
for which no target is available. Name the class properly and suppress
the dangling reference.
(cherry picked from commit
7a93db44257c0404dc407ff2ddc997f4bb8890ed )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Skip Montanaro [Wed, 31 Jan 2024 09:32:12 +0000 (03:32 -0600)]
[3.11] gh-101100: Fix references in csv docs (GH-114658) (GH-114773)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit
3911b42cc0d404e0eac87fce30b740b08618ff06 )
Miss Islington (bot) [Wed, 31 Jan 2024 07:05:58 +0000 (08:05 +0100)]
[3.11] Docs: mark up dbm.gnu.open() and dbm.ndbm.open() using param list (GH-114762) (#114784)
(cherry picked from commit
c8cf5d7d148944f2850f25b02334400dd0238cb0 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Wed, 31 Jan 2024 00:08:26 +0000 (01:08 +0100)]
gh-110190: Fix ctypes structs with array on Windows ARM64 (GH-114753)
(cherry picked from commit
a06b606462740058b5d52fefdcdcd679d4f40260 )
Co-authored-by: Diego Russo <diego.russo@arm.com>
Miss Islington (bot) [Tue, 30 Jan 2024 18:50:32 +0000 (19:50 +0100)]
[3.11] Clarify one-item tuple (GH-114745) (#114758)
A 'single tuple' means 'one tuple, of whatever length.
Remove the unneeded and slightly distracting parenthetical 'singleton' comment.
(cherry picked from commit
a1332a99cf1eb9b879d4b1f28761b096b5749a0d )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 29 Jan 2024 21:30:27 +0000 (22:30 +0100)]
[3.11] Set `hosted_on` for Read the Docs builds (GH-114697) (#114735)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>