Commit graph

116459 commits

Author SHA1 Message Date
Miss Islington (bot)
c568d44a54
[3.11] Remove stray backtick in NEWS entry (GH-115356) (#115363)
Remove stray backtick in NEWS entry (GH-115356)
(cherry picked from commit a82fbc13d0)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2024-02-12 19:30:22 +00:00
Hugo van Kemenade
f0c58c6475
[3.11] gh-101100: Fix Sphinx warnings in whatsnew/2.7.rst and related (GH-115319) (#115331) 2024-02-12 16:37:28 +02:00
Miss Islington (bot)
9b6aba2751
[3.11] Add missing sections to blurbs (GH-114553) (#115337)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-12 14:22:41 +00:00
Serhiy Storchaka
5f938c1104
[3.11] gh-115198: Fix support of Docutils >= 0.19 in distutils (GH-115220) 2024-02-12 13:45:22 +02:00
Skip Montanaro
07fff60fb2
[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 e1552fd19d)
2024-02-12 12:54:44 +02:00
Nikita Sobolev
879d8c4660
[3.11] gh-115252: Fix test_enum with -OO mode (GH-115253) (#115279)
(cherry picked from commit 33f56b7432)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 18:19:59 +03:00
Serhiy Storchaka
b9e90031a3
[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 2939ad02be)
(cherry picked from commit cfb79caaab)
2024-02-11 15:19:43 +00:00
Miss Islington (bot)
83a69a6a01
[3.11] gh-113468: Remove the "_new_ suffix from class names in pydocfodder (GH-113469) (GH-115300)
(cherry picked from commit 8a3d0e4a66)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-11 14:51:32 +00:00
Serhiy Storchaka
75d92f5c4e
[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 d329f859b9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 14:29:23 +00:00
Serhiy Storchaka
7273a58a85
[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 d9d6909697)
2024-02-11 12:03:48 +00:00
Miss Islington (bot)
e72255054b
[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 aeffc7f895)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-11 11:04:02 +00:00
Serhiy Storchaka
446a6db5e1
[3.11] gh-115172: Fix explicit index extries for the C API (GH-115173) (GH-115293)
(cherry picked from commit 573acb30f2)
2024-02-11 10:42:28 +00:00
Miss Islington (bot)
3501eca89e
[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 4a08e7b343)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-11 10:38:04 +00:00
Miss Islington (bot)
dd28e82527
[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 1b89591474)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
2024-02-11 09:28:03 +00:00
Nikita Sobolev
def102ab42
[3.11] gh-115274: Fix direct invocation of testmock/testpatch.py (GH-115275) (#115281)
(cherry picked from commit f8e9c57067)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 12:14:25 +03:00
Miss Islington (bot)
3aa9621c39
[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 1f23837277)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 11:57:58 +03:00
Miss Islington (bot)
7f2a19eb75
[3.11] gh-115254: Fix test_property with -00 mode (GH-115255) (#115262)
(cherry picked from commit b70a68fbd6)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 10:58:51 +03:00
Miss Islington (bot)
f4146a220e
[3.11] gh-114670: Fix _testbuffer module initialization (GH-114672) (#115271)
(cherry picked from commit 3a5b38e3b4)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 10:53:17 +03:00
Miss Islington (bot)
562fe5f5d4
[3.11] gh-115059: Remove debugging code in test_io (GH-115240) (GH-115245)
(cherry picked from commit 597fad07f7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-10 16:04:32 +02:00
Miss Islington (bot)
089cae5158
[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 e19103a346)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-10 08:54:43 +00:00
Serhiy Storchaka
115f72b70b
[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>
2024-02-09 18:23:29 -05:00
Miss Islington (bot)
7542210a95
[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 564385612c)

Co-authored-by: dave-shawley <daveshawley@gmail.com>
2024-02-09 22:43:24 +00:00
Nikita Sobolev
ca3eca1584
[3.11] gh-101100: Fix sphinx warnings in library/enum.rst (GH-114696) (GH-115209) 2024-02-09 12:09:59 -08:00
Miss Islington (bot)
ff72af8991
[3.11] Docs: correctly link to code objects (GH-115214) (#115217)
(cherry picked from commit 769d444826)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-02-09 14:18:01 +00:00
Miss Islington (bot)
20c6535693
[3.11] gh-115059: Flush the underlying write buffer in io.BufferedRandom.read1() (GH-115163) (GH-115206)
(cherry picked from commit 846fd721d5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-09 11:01:47 +00:00
Miss Islington (bot)
5fc2f5571d
gh-115167: Exclude vcruntime140_threads.dll from Windows build output (GH-115176)
(cherry picked from commit 5914a211ef)

Co-authored-by: adang1345 <adang1345@gmail.com>
2024-02-08 22:19:11 +00:00
Miss Islington (bot)
21e3b31424
[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 3f71c416c0)

Co-authored-by: Finite State Machine <38001514+finite-state-machine@users.noreply.github.com>
2024-02-08 14:02:45 -08:00
Miss Islington (bot)
214ac16696
[3.11] gh-115136: Fix possible NULL deref in getpath_joinpath() (GH-115137) (ПР-115158)
(cherry picked from commit 9e90313320)

Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Co-authored-by: Artem Chernyshev <62871052+dTenebrae@users.noreply.github.com>
2024-02-08 11:18:16 +02:00
Miss Islington (bot)
5e686dffa4
[3.11] gh-115146: Fix typo in pickletools.py documentation (GH-115148) (GH-115156)
(cherry picked from commit 4a7f63869a)

Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com>
2024-02-08 08:32:46 +00:00
Skip Montanaro
e1e4cf7611
[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 d0322fdf2c)
2024-02-07 17:16:51 +00:00
Miss Islington (bot)
3aa4418c5a
[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 71239d50b5)

Co-authored-by: Artem Mukhin <artem.m.mukhin@gmail.com>
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2024-02-07 11:36:27 +02:00
Pablo Galindo
6bc531610f Merge remote-tracking branch 'upstream/3.11' into 3.11 2024-02-06 23:38:43 +00:00
Pablo Galindo
c43bd4b934 Post 3.11.8 2024-02-06 23:38:18 +00:00
Erlend E. Aasland
3a23aa77a6
[3.11] gh-115009: Update Windows installer to use SQLite 3.45.1 (#115065) (#115111)
(cherry picked from commit 11ac6f5354)
2024-02-06 23:06:34 +00:00
Pablo Galindo
db85d51d3e Python 3.11.8 2024-02-06 21:21:21 +00:00
Miss Islington (bot)
a04dc43148
[3.11] GH-gh-75705: Set unixfrom envelope in mailbox._mboxMMDF (GH-107117) (GH-115099)
(cherry picked from commit 76108b8b05)

Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
2024-02-06 19:16:54 +00:00
Miss Islington (bot)
350d1d09c5
[3.11] gh-46968: Fix invalid reference to Sound eXchange (SoX) 12.17.7 license (GH-115094) (GH-115095)
(cherry picked from commit b39119916c)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-02-06 19:22:48 +01:00
Miss Islington (bot)
b5a679304b
[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 618d7256e7)

Co-authored-by: Zachary Ware <zach@python.org>
2024-02-06 15:54:05 +01:00
Peter Lazorchak
a11312456d
[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
2024-02-06 21:58:30 +08:00
Erlend E. Aasland
2e99ba9e90
[3.11] gh-115009: Update macOS installer to use SQLite 3.45.1 (#115066) (#115072)
(cherry picked from commit 13eb5215c9)

Co-authored-by: Ned Deily <nad@python.org>
2024-02-06 10:25:54 +00:00
Erlend E. Aasland
ead9e784fb
[3.11] gh-115015: Argument Clinic: fix generated code for METH_METHOD methods without params (#115016) (#115069)
(cherry picked from commit 09096a1647)
2024-02-06 11:21:00 +01:00
Ned Deily
319e69579e
[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.
2024-02-05 23:02:10 -05:00
Miss Islington (bot)
753d0d559c
[3.11] gh-109991: Update macOS installer to use OpenSSL 3.0.13. (GH-115054)
(cherry picked from commit 638e811a3c)

Co-authored-by: Ned Deily <nad@python.org>
2024-02-06 02:16:32 +00:00
Zachary Ware
30d999fa50
[3.11] gh-109991: Update Windows build to use OpenSSL 3.0.13 (#115048)
(cherry picked from commit 01dceba13e)
2024-02-06 00:19:44 +00:00
Serhiy Storchaka
e1976399cd
[3.11] gh-109475: Fix support of explicit option value "--" in argparse (GH-114814) (GH-115037)
For example "--option=--".
(cherry picked from commit 4aa4f0906d)
2024-02-05 21:04:11 +00:00
Miss Islington (bot)
98b2f4624a
[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 750489cc77)
Co-authored-by: HarryLHW <123lhw321@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-02-05 20:29:29 +00:00
Serhiy Storchaka
89878141ed
[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 15f6f048a6)
2024-02-05 13:24:23 +02:00
Miss Islington (bot)
b3f0108eac
[3.11] GH-69695: Update `PyImport_ImportModule` description (GH-103836) (GH-114924)
GH-69695: Update ``PyImport_ImportModule`` description (GH-103836)

(cherry picked from commit 9872855a31)

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>
2024-02-05 10:53:50 +01:00
Miss Islington (bot)
7f1c5578bb
[3.11] Remove bogus syntax error marker in csv doc (GH-115017) (#115019)
(cherry picked from commit 39ec7fbba8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-02-05 04:18:02 +00:00
Travis Howse
5ce076fd92
[3.11] gh-114887 Reject only sockets of type SOCK_STREAM in create_da… (#114979)
Also improve exception message.

(cherry picked from commit 94ec2b9c9c)

Co-authored-by: Donghee Na <donghee.na92@gmail.com>
2024-02-04 20:01:37 -08:00