Commit graph

116485 commits

Author SHA1 Message Date
Miss Islington (bot)
2c39d00a56
[3.11] gh-97590: Update docs and tests for ftplib.FTP.voidcmd() (GH-96825) (GH-115602)
Since 2f3941d743 this function returns the
response string, rather than nothing.
(cherry picked from commit e88ebc1c40)

Co-authored-by: Matthew Hughes <34972397+matthewhughes934@users.noreply.github.com>
2024-02-17 14:54:31 +02:00
Miss Islington (bot)
ba2f2ca632
[3.11] gh-101100: Fix Sphinx warnings in whatsnew/3.1.rst (GH-115575) (#115588)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-17 02:47:54 -07:00
Miss Islington (bot)
7de9caec0d
[3.11] docs: Add glossary term references to shutil docs (GH-115559) (#115579)
docs: Add glossary term references to shutil docs (GH-115559)

Add glossary term references to shutil docs
(cherry picked from commit 318f2190bc)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
2024-02-16 22:12:45 +00:00
Jelle Zijlstra
c01a4808d3
[3.11] gh-115570: Fix DeprecationWarnings in test_typing (#115571)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-16 19:37:42 +00:00
Hugo van Kemenade
963315cbd9
[3.11] gh-100734: What's New in 3.x: Add missing detail from 3.x branch (GH-114689) (#115527) 2024-02-15 17:44:50 +02:00
Nikita Sobolev
c3a274b0fe
[3.11] gh-108303: Move all pydoc related files to test_pydoc (GH-114506) (#115501)
(cherry picked from commit ccc76c3e88)
2024-02-15 16:36:10 +03:00
Miss Islington (bot)
9bb3f56592
[3.11] [3.12] GH-113516: don't set LDSHARED when building for WASI (GH-115495) (GH-115496) (GH-115497)
[3.12] GH-113516: don't set `LDSHARED` when building for WASI (GH-115495) (GH-115496)
(cherry picked from commit 0e4f73b8e4)

Co-authored-by: Brett Cannon <brett@python.org>
2024-02-14 17:34:45 -08:00
Donghee Na
1739efc57d
[3.11] gh-112087: Fix reduce logic for the empty reverse iterator for list (gh-115472) 2024-02-14 18:43:39 +00:00
Miss Islington (bot)
c12b0a25e8
[3.11] Docs: spell out sentence about ndbm/gdbm file formats (GH-115470) (#115477)
(cherry picked from commit 49e8fdc1df)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-02-14 18:10:06 +00:00
Seth Michael Larson
e071b0d558
[3.11] Upgrade bundled libexpat to 2.6.0 (GH-115399) (GH-115468)
Manual backport due to code differences.
2024-02-14 18:29:27 +01:00
Miss Islington (bot)
0e07ebdba4
[3.11] gh-115243: Fix crash in deque.index() when the deque is concurrently modified (GH-115247) (GH-115466)
(cherry picked from commit 671360161f)

Co-authored-by: kcatss <kcats9731@gmail.com>
2024-02-14 17:21:12 +00:00
Miss Islington (bot)
7b94f47e68
[3.11] Docs: reword sentences about dbm submodule traits (GH-114609) (#115463)
Don't repeatedly say that keys and values are coerced into bytes.
(cherry picked from commit 81e140d10b)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-02-14 15:56:04 +00:00
Miss Islington (bot)
c4e8ffb9a1
[3.11] gh-115392: Fix doctest reporting incorrect line numbers for decorated functions (GH-115440) (#115458)
gh-115392: Fix doctest reporting incorrect line numbers for decorated functions (GH-115440)
(cherry picked from commit bb791c7728)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
2024-02-14 15:55:48 +00:00
Hugo van Kemenade
cb941e1264
[3.11] gh-101100: Fix sphinx warnings in c-api/gcsupport.rst (GH-114786) (#115430)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-14 16:32:58 +02:00
Miss Islington (bot)
8dae36d1fb
[3.11] gh-115403: Remove extra colon after "Examples" in datetime documentation (GH-115452) (#115456)
gh-115403: Remove extra colon after "Examples" in datetime documentation (GH-115452)
(cherry picked from commit 6755c4e0c8)

Co-authored-by: Stanislav Lyu <wallseat@gmail.com>
2024-02-14 17:07:21 +03:00
Miss Islington (bot)
1a8165012d
[3.11] gh-115450: Fix direct invocation of test_desctut (GH-115451) (#115454)
gh-115450: Fix direct invocation of `test_desctut` (GH-115451)
(cherry picked from commit ec8909a239)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-14 14:04:23 +00:00
Miss Islington (bot)
c274fe7534
[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 3fd2ad8241)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-14 10:48:10 +00:00
Miss Islington (bot)
7f88cb1f28
[3.11] gh-113437: Update documentation about PyUnicode_AsWideChar() function (GH-113455) (GH-115408)
(cherry picked from commit 5719aa23ab)

Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
2024-02-14 11:24:54 +01:00
Hugo van Kemenade
b5873793c0
[3.11] gh-115383: Use runner version to compute config.cache key (GH-115409) (#115428)
Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-02-14 00:21:29 -07:00
Miss Islington (bot)
0af16e3dc6
[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 de07941729)

Co-authored-by: Christophe Papazian <114495376+christophe-papazian@users.noreply.github.com>
2024-02-13 16:16:22 +00:00
Serhiy Storchaka
7ba2d78cbb
[3.11] gh-115252: Fix test_enum with -OO mode again (GH-115334) (GH-115397)
(cherry picked from commit ca3604a3e3)
2024-02-13 10:40:40 +00:00
John Belmonte
b86fdf2222
[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 72340d15cd)
(cherry picked from commit 09c98e4633)

Co-authored-by: Stefan Krah <skrah@bytereef.org>
2024-02-13 10:38:06 +02:00
Miss Islington (bot)
d87a02223c
[3.11] Update "Using Python on a Mac" (GH-115024) (#115388)
Update "Using Python on a Mac" (GH-115024)
(cherry picked from commit 0a6e1a4119)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-13 09:06:35 +02:00
Miss Islington (bot)
a33ae3b63e
[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 341d7874f0)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
2024-02-13 07:30:54 +02:00
Miss Islington (bot)
21edde17b3
[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 225856ef3e)
(cherry picked from commit 91822018ee)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-12 23:25:47 +02:00
Miss Islington (bot)
d732134232
[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 4297d7301b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-12 20:21:18 +00:00
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