]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sat, 17 Aug 2024 08:45:25 +0000 (10:45 +0200)]
[3.13] gh-122519: Adding socket module shutdown() constants description (GH-122543) (#123093)
gh-122519: Adding socket module shutdown() constants description (GH-122543)
(cherry picked from commit
8a59deca59aa9452e71bb49e909199fbb41a5de7 )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Fri, 16 Aug 2024 11:58:17 +0000 (13:58 +0200)]
[3.13] mention pypy somewhat more prominently in the pyrepl section of whatsnew (GH-123063) (#123064)
Miss Islington (bot) [Fri, 16 Aug 2024 10:01:40 +0000 (12:01 +0200)]
[3.13] gh-122247: Move instruction instrumentation sanity check after tracing check (GH-122251) (GH-122812)
(cherry picked from commit
57d7c3e78fb635a0c6ccce38ec3e2f4284d5fac7 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Fri, 16 Aug 2024 08:49:17 +0000 (10:49 +0200)]
[3.13] gh-122584: Import mimalloc headers in a C++ context (GH-122587) (#123035)
gh-122584: Import mimalloc headers in a C++ context (GH-122587)
(cherry picked from commit
1dad23edbc9db3a13268c1000c8dd428edba29f8 )
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Miss Islington (bot) [Fri, 16 Aug 2024 08:36:46 +0000 (10:36 +0200)]
[3.13] gh-116622: Add Android test script (GH-121595) (#123061)
gh-116622: Add Android test script (GH-121595)
Adds a script for running the test suite on Android emulator devices. Starting
with a fresh install of the Android Commandline tools; the script manages
installing other requirements, starting the emulator (if required), and
retrieving results from that emulator.
(cherry picked from commit
f84cce6f2588c6437d69a30856d7c4ba00b70ae0 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Fri, 16 Aug 2024 08:07:42 +0000 (10:07 +0200)]
[3.13] gh-116622: Android logging fixes (GH-122698) (#122719)
gh-116622: Android logging fixes (GH-122698)
Modifies the handling of stdout/stderr redirection on Android to accomodate
the rate and buffer size limits imposed by Android's logging infrastructure.
(cherry picked from commit
b0c48b8fd88f26b31ec2f743358091073277dcde )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Fri, 16 Aug 2024 08:07:27 +0000 (10:07 +0200)]
[3.13] gh-116622: Don't expose `FICLONE` ioctl on Android (GH-122522) (#122539)
gh-116622: Don't expose `FICLONE` ioctl on Android (GH-122522)
Don't expose `FICLONE` ioctl on Android
(cherry picked from commit
06656e259bc9b2c3cf8a23bdc6e4acb052c56e1f )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Fri, 16 Aug 2024 07:41:49 +0000 (09:41 +0200)]
[3.13] gh-123046: Fix regexp to catch cases where the module name is omitted from the weakref repr (GH-123047) (#123058)
gh-123046: Fix regexp to catch cases where the module name is omitted from the weakref repr (GH-123047)
(cherry picked from commit
786cac0c64dc156dfee817e87f15ae56b7e3ed00 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Thu, 15 Aug 2024 19:57:07 +0000 (21:57 +0200)]
[3.13] gh-116608: Apply style and compatibility changes from importlib_resources. (GH-123028) (#123051)
gh-116608: Apply style and compatibility changes from importlib_metadata. (GH-123028)
(cherry picked from commit
e913d2c87f1ae4e7a4aef5ba78368ef31d060767 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Thu, 15 Aug 2024 09:25:33 +0000 (11:25 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: New Features (GH-122990) (#123032)
GH-109975: Copyedit 3.13 What's New: New Features (GH-122990)
(cherry picked from commit
b106cf8d978b32b04a4394973b850ef2a62cbcc4 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Miss Islington (bot) [Wed, 14 Aug 2024 21:31:19 +0000 (23:31 +0200)]
[3.13] gh-123005: Add version added in enum.Flag.__len__ (GH-123007) (#123026)
gh-123005: Add version added in enum.Flag.__len__ (GH-123007)
(cherry picked from commit
8e2dc7f380c7ffe6b0fe525b4d0558aaed9d7145 )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Wed, 14 Aug 2024 13:20:40 +0000 (15:20 +0200)]
[3.13] gh-122965: Fix `reusable-change-detection.yml` on `workflow_dispatch` (GH-122966) (#123008)
gh-122965: Fix `reusable-change-detection.yml` on `workflow_dispatch` (GH-122966)
(cherry picked from commit
6ae942f412492b840fc6b43d39ba9133aa890ee7 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Russell Keith-Magee [Wed, 14 Aug 2024 02:03:18 +0000 (10:03 +0800)]
[3.13] Revert use of --rerun in iOS testbed. (#122995)
Reverts the use of --rerun in iOS testing because it tries to create a subprocess on the rerun.
Miss Islington (bot) [Wed, 14 Aug 2024 00:41:37 +0000 (02:41 +0200)]
[3.13] Add a --rerun option to the iOS testbed. (GH-122992) (#122993)
Enable --rerun when running tests on iOS.
(cherry picked from commit
ce39d3c6bdab4c703ad95f37831b410fb729e116 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Tue, 13 Aug 2024 17:39:14 +0000 (19:39 +0200)]
[3.13] GH-85633: Fix pathlib test failures on filesystems without world-write. (GH-122883) (#122979)
GH-85633: Fix pathlib test failures on filesystems without world-write. (GH-122883)
Replace `umask(0)` with `umask(0o002)` so the created files are not
world-writable, and replace `umask(0o022)` with `umask(0o026)` to check
that permissions for 'others' can still be set.
(cherry picked from commit
5f6851152254b4b9d70af4ae5aea3f20965cee28 )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Miss Islington (bot) [Tue, 13 Aug 2024 17:03:36 +0000 (19:03 +0200)]
[3.13] Fix `print` usage in `turtle` doctests (GH-122940) (#122977)
Fix `print` usage in `turtle` doctests (GH-122940)
(cherry picked from commit
901d94992eddd84ded2edc55235cbf22503c4de4 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Tue, 13 Aug 2024 14:58:35 +0000 (16:58 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: Release Highlights (GH-122958) (#122971)
GH-109975: Copyedit 3.13 What's New: Release Highlights (GH-122958)
(cherry picked from commit
db6f5e193315a3bbfa7b0b6644203bae3f76b638 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Aug 2024 18:56:36 +0000 (20:56 +0200)]
[3.13] gh-122944: Fix incorrect prompt strings in the Python Tutorial (GH-122949) (#122954)
gh-122944: Fix incorrect prompt strings in the Python Tutorial (GH-122949)
In the REPL, top level comments are followed by a primary, not secondary prompt.
Fix the places in the in the tutorial that use the latter.
(cherry picked from commit
be90648fb2de58b148dcc7553a08ca646911baf2 )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Aug 2024 16:53:05 +0000 (18:53 +0200)]
[3.13] gh-122888: Fix crash on certain calls to str() (GH-122889) (#122947)
Fixes GH-122888
(cherry picked from commit
53ebb6232a8ebc03827cf2251bfc67f1886ffd70 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 12 Aug 2024 11:00:33 +0000 (13:00 +0200)]
[3.13] gh-111051: [tests] Wait a second to support filesystems with low-resolution mtime (GH-121959) (GH-122114)
(cherry picked from commit
cad11a2bdceb6d4683ae5654ce555cdf5f191217 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 12 Aug 2024 10:37:03 +0000 (12:37 +0200)]
[3.13] gh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms which don't support pwd.getpwall (GH-122521) (GH-122530)
(cherry picked from commit
8844197daaeb3aa026cfe1cac6cf9d1b52c2540e )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Mon, 12 Aug 2024 01:02:10 +0000 (03:02 +0200)]
[3.13] gh-122903: Honor directories in zipfile.Path.glob. (GH-122908) (#122926)
(cherry picked from commit
6aa35f3002dda25858d47e702e750e2871e42a7c )
Miss Islington (bot) [Mon, 12 Aug 2024 00:35:04 +0000 (02:35 +0200)]
[3.13] gh-122905: Sanitize names in zipfile.Path. (GH-122906) (#122922)
Miss Islington (bot) [Sun, 11 Aug 2024 21:20:07 +0000 (23:20 +0200)]
[3.13] gh-122701: Fix wording of raw strings/bytes in `lexical_analysis.rst` (GH-122702) (#122914)
gh-122701: Fix wording of raw strings/bytes in `lexical_analysis.rst` (GH-122702)
(cherry picked from commit
ea70439bd2b5a1c881342646f30942f527f61373 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sun, 11 Aug 2024 20:57:19 +0000 (22:57 +0200)]
[3.13] Docs: Standardise versionchanged text in weakref.rst (GH-122898) (#122911)
Docs: Standardise versionchanged text in weakref.rst (GH-122898)
(cherry picked from commit
db8b83c2b0247f1d9b15152bbfcfe4afc7e588ed )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 Aug 2024 21:41:14 +0000 (23:41 +0200)]
[3.13] GH-120794: Use example paths with multiple parts in pathlib docs (GH-122887) (#122895)
GH-120794: Use example paths with multiple parts in pathlib docs (GH-122887)
In the documentation of `PosixPath` and `WindowsPath`, and their `Pure*`
equivalents, use example paths with multiple non-anchor parts.
(cherry picked from commit
363374cf69a7e2292fe3f1c6bedd199088958cc2 )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 Aug 2024 21:10:22 +0000 (23:10 +0200)]
[3.13] gh-122868: Add more lower bounds for sphinxcontrib dependencies (GH-122891) (#122893)
gh-122868: Add more lower bounds for sphinxcontrib dependencies (GH-122891)
(cherry picked from commit
0959142e4defcf7a9fcbbb228d2e2b97a074f7ea )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 9 Aug 2024 22:36:23 +0000 (00:36 +0200)]
[3.13] gh-122868: Add lower bounds for sphinxcontrib dependencies (GH-122870) (#122871)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 9 Aug 2024 21:45:04 +0000 (23:45 +0200)]
[3.13] gh-116622: Rename build variable MODULE_LDFLAGS back to LIBPYTHON (GH-122764) (GH-122842)
gh-116622: Rename build variable MODULE_LDFLAGS back to LIBPYTHON (GH-122764)
(LIBPYTHON was renamed MODULE_LDFLAGS in commit
7f5e3f04f .)
(cherry picked from commit
2f5c3b09e45798a18d60841d04a165fb062be666 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Fri, 9 Aug 2024 21:33:56 +0000 (23:33 +0200)]
[3.13] gh-122255: Add black box tests in test_warnings (GH-122227) (GH-122818)
gh-122255: Add black box tests in test_warnings (GH-122227)
They are similar to white box tests for gh-86298 in test_importlib.
(cherry picked from commit
fe13c9baf40673fe369e98626dd87aea8b805aa2 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 9 Aug 2024 15:15:30 +0000 (17:15 +0200)]
[3.13] gh-105376: Restore deprecated logging warn() method (GH-122775) (#122856)
gh-105376: Restore deprecated logging warn() method (GH-122775)
This reverts commit
dcc028d92428bd57358a5028ada2a53fc79fc365 and
commit
6c54e5d72166d012b52155cbf13af9e533290e06 .
Keep the deprecated logging warn() method in Python 3.13.
(cherry picked from commit
d3239976a8e66ae3e2f4314a6889d79cdc9a9625 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 9 Aug 2024 14:42:16 +0000 (16:42 +0200)]
[3.13] gh-109218: Refactor tests for the complex() constructor (GH-119635) (GH-119795)
* Share common classes.
* Use exactly representable floats and exact tests.
* Check the sign of zero components.
* Remove duplicated tests (mostly left after merging int and long).
* Reorder tests in more consistent way.
* Test more error messages.
* Add tests for missed cases.
(cherry picked from commit
bf098d4157158e1e4b2ea78aba4ac82d72e24cff )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 9 Aug 2024 14:35:49 +0000 (16:35 +0200)]
[3.13] gh-121874: Define audit-event open parameters consistently (GH-121883) (#121956)
Co-authored-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Peter Bierma [Fri, 9 Aug 2024 14:06:36 +0000 (14:06 +0000)]
[3.13] gh-122695: Fix double-free when using `gc.get_referents` with a freed `_asyncio.FutureIter` (#122837)
* Backport #122834 for 3.13
Miss Islington (bot) [Fri, 9 Aug 2024 11:43:09 +0000 (13:43 +0200)]
[3.13] gh-122661: Remove GNU make-specific directive from Doc/Makefile (GH-122662) (#122668)
Co-authored-by: Libor Martínek <libas@acco.cz>
Miss Islington (bot) [Fri, 9 Aug 2024 07:26:54 +0000 (09:26 +0200)]
[3.13] gh-122744: test_venv: ignore pip's complaint about missing ssl (GH-122776) (GH-122823)
(cherry picked from commit
0d9c123d1ac4f3dd30bdef5182049d9a831eca10 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Thu, 8 Aug 2024 21:14:49 +0000 (23:14 +0200)]
[3.13] GH-118943: Remove regen-jit from the regen-all make target (GH-122840)
cherry picked from commit
8c9d1742de6e3c3232c96660291f109c23a3bc49 )
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Co-authored-by: Éric <merwok@netwok.org>
Miss Islington (bot) [Thu, 8 Aug 2024 20:37:49 +0000 (22:37 +0200)]
[3.13] GH-118943: Handle races when moving jit_stencils.h (GH-122709)
(cherry picked from commit
44659d392751f0161a0f958fec39ad013da45427 )
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Thu, 8 Aug 2024 07:26:52 +0000 (09:26 +0200)]
[3.13] gh-87320: In the code module, handle exceptions raised in sys.excepthook (GH-122456) (GH-122514)
Before, the exception caused by calling non-default sys.excepthook
in code.InteractiveInterpreter bubbled up to the caller, ending the REPL.
(cherry picked from commit
bd3d31f380cd451a4ab6da5fbfde463fed95b5b5 )
Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
Serhiy Storchaka [Thu, 8 Aug 2024 06:49:21 +0000 (09:49 +0300)]
[3.13] gh-118814: Fix the TypeVar constructor when name is passed by keyword (GH-122664) (GH-122806)
Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for
positional-or-keyword parameter is passed by keyword.
There was only one such case in the stdlib -- the TypeVar constructor.
(cherry picked from commit
540fcc62f5da982b79504221cac01bfab8b73ba1 )
Miss Islington (bot) [Wed, 7 Aug 2024 16:18:08 +0000 (18:18 +0200)]
[3.13] Docs: Change `remove` to `removes` for consistency (GH-121072) (#122790)
Docs: Change `remove` to `removes` for consistency (GH-121072)
(cherry picked from commit
967a4f1d180d4cd669d5c6e3ac5ba99af4e72d4e )
Co-authored-by: smij720 <122238526+smij720@users.noreply.github.com>
Miss Islington (bot) [Wed, 7 Aug 2024 15:41:26 +0000 (17:41 +0200)]
[3.13] gh-122511: Improve documentation for object identity of mutable/immutable types (GH-122512) (#122778)
gh-122511: Improve documentation for object identity of mutable/immutable types (GH-122512)
(cherry picked from commit
76bdeebef6c6206f3e0af1e42cbfc75c51fbb8ca )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 7 Aug 2024 15:35:35 +0000 (17:35 +0200)]
[3.13] Doc: cmdline.rst: Include -P and -R in usage (GH-122590) (#122783)
Doc: cmdline.rst: Include -P and -R in usage (GH-122590)
* ``-P``: safe path (https://docs.python.org/3/using/cmdline.htmlGH-cmdoption-P)
* ``-R``: hash randomization (https://docs.python.org/3/using/cmdline.htmlGH-cmdoption-R)
(cherry picked from commit
c25898d51e4ec84319b7113d5bf453c6e6519d9c )
Co-authored-by: Wim Jeantine-Glenn <hey@wimglenn.com>
Miss Islington (bot) [Wed, 7 Aug 2024 12:59:03 +0000 (14:59 +0200)]
[3.13] gh-122581: Avoid data races when collecting parser statistics (GH-122694) (#122733)
gh-122581: Avoid data races when collecting parser statistics (GH-122694)
(cherry picked from commit
ce0d66c8d238c9676c6ecd3f04294a3299e07f74 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Tue, 6 Aug 2024 21:37:10 +0000 (23:37 +0200)]
[3.13] gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735) (#122757)
gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735)
Fix PyEval_GetLocals() to avoid SystemError ("bad argument to
internal function"). Don't redefine the 'ret' variable in the if
block.
Add an unit test on PyEval_GetLocals().
(cherry picked from commit
4767a6e31c0550836b2af45d27e374e721f0c4e6 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 6 Aug 2024 19:00:14 +0000 (21:00 +0200)]
[3.13] gh-122334: Fix test_embed failure when missing _ssl module (GH-122630) (#122647)
gh-122334: Fix test_embed failure when missing _ssl module (GH-122630)
(cherry picked from commit
50b36037518a8e7f7eee39b597d56b5b2756eb86 )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Co-authored-by: Wulian233 <1055917385@qq.com>
Miss Islington (bot) [Tue, 6 Aug 2024 18:57:02 +0000 (20:57 +0200)]
[3.13] gh-121103: Update site module docs for free-threaded installs (GH-122737) (#122750)
gh-121103: Update site module docs for free-threaded installs (GH-122737)
(cherry picked from commit
1429651a06611a9dbcb1928b746faf52934c12e2 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Pradyun Gedam [Tue, 6 Aug 2024 18:50:12 +0000 (19:50 +0100)]
[3.13] gh-122744: Bump bundled pip to 24.2 (#122746)
(cherry picked from commit
5b8a6c5186be299d96dd483146dc6ea737ffdfe7 )
Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
Miss Islington (bot) [Tue, 6 Aug 2024 17:06:41 +0000 (19:06 +0200)]
[3.13] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122484)
gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233)
GH-GH- Encode header parts that contain newlines
Per RFC 2047:
> [...] these encoding schemes allow the
> encoding of arbitrary octet values, mail readers that implement this
> decoding should also ensure that display of the decoded data on the
> recipient's terminal will not cause unwanted side-effects
It seems that the "quoted-word" scheme is a valid way to include
a newline character in a header value, just like we already allow
undecodable bytes or control characters.
They do need to be properly quoted when serialized to text, though.
GH-GH- Verify that email headers are well-formed
This should fail for custom fold() implementations that aren't careful
about newlines.
(cherry picked from commit
097633981879b3c9de9a1dd120d3aa585ecc2384 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Bas Bloemsaat <bas@bloemsaat.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 6 Aug 2024 16:53:12 +0000 (18:53 +0200)]
[3.13] gh-122573: Require Python 3.10 or newer for Windows builds (GH-122574) (#122674)
gh-122573: Require Python 3.10 or newer for Windows builds (GH-122574)
Match statements in tooling require a more recent Python. Tools/cases_generator/*.py (and `Tools/jit/*.py` in 3.13+).
(cherry picked from commit
d0b92dd5ca46a10558857adeb7bb48ecf39fa783 )
Co-authored-by: Jonathan Protzenko <protz@microsoft.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Tue, 6 Aug 2024 06:46:14 +0000 (08:46 +0200)]
[3.13] Fix syntax in generate_re_casefix.py (GH-122699) (#122721)
This was broken in gh-97963.
(cherry picked from commit
b72c748d7fb4ecc0bc4626c7bc05fbc6c83f0ba8 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sergey B Kirpichev [Mon, 5 Aug 2024 18:11:34 +0000 (21:11 +0300)]
[3.13] gh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-122280) (#122645)
[3.13] gh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-GH-122280)
(cherry picked from commit
d91ac525ef166edc0083acf5a96f81b87324fe7f )
Miss Islington (bot) [Mon, 5 Aug 2024 09:37:16 +0000 (11:37 +0200)]
[3.13] gh-121367: [doc] BUILD_TUPLE arg can be 0 (GH-122663) (#122683)
gh-121367: [doc] BUILD_TUPLE arg can be 0 (GH-122663)
(cherry picked from commit
1422500d020bd199b26357fc387f8b79b82226cd )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Sun, 4 Aug 2024 17:21:25 +0000 (19:21 +0200)]
[3.13] Add `3.13` and remove `3.7` in Azure Pipelines (GH-122670) (#122671)
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Sun, 4 Aug 2024 12:09:22 +0000 (14:09 +0200)]
[3.13] gh-122623: Improve `c-api/bytearray.rst` with error handling info (GH-122624) (#122658)
gh-122623: Improve `c-api/bytearray.rst` with error handling info (GH-122624)
(cherry picked from commit
151934a324789c58cca9c7bbd6753d735454df5a )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sat, 3 Aug 2024 13:41:49 +0000 (15:41 +0200)]
[3.13] Doc: Grammar fix in ``library/ssl.rst``, 'Verifying certificates' (GH-122646) (#122649)
Doc: Grammar fix in ``library/ssl.rst``, 'Verifying certificates' (GH-122646)
(cherry picked from commit
06eb9701a182b4720dfa8766cb41cc5a3728a8b9 )
Co-authored-by: scottwoodall <scott.woodall@gmail.com>
Miss Islington (bot) [Sat, 3 Aug 2024 13:25:26 +0000 (15:25 +0200)]
[3.13] Doc: Improve wording of ``os.path.commonpath()`` (GH-122627) (#122641)
Doc: Improve wording of ``os.path.commonpath()`` (GH-122627)
(cherry picked from commit
7a5c4103b094aaf1b65af6de65795d172cfe8fe0 )
Co-authored-by: Matth-M <93771840+Matth-M@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Irit Katriel [Fri, 2 Aug 2024 18:26:57 +0000 (19:26 +0100)]
[3.13] gh-122445: populate only modified fields in __static_attributes__ (#122446) (#122621)
gh-122445: populate only modified fields in __static_attributes__ (#122446)
(cherry picked from commit
498376d7a7d6f704f22a2c963130cc15c17e7a6f )
Miss Islington (bot) [Fri, 2 Aug 2024 14:07:16 +0000 (16:07 +0200)]
[3.13] gh-122334: Fix crash when importing ssl after re-initialization (GH-122481) (#122614)
gh-122334: Fix crash when importing ssl after re-initialization (GH-122481)
* Fix crash when importing ssl after re-initialization
(cherry picked from commit
9fc1c992d6fcea0b7558c581846eef6bdd811f6c )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Aug 2024 13:58:24 +0000 (15:58 +0200)]
[3.13] gh-120974: Make asyncio `swap_current_task` safe in free-threaded build (GH-122317) (#122612)
gh-120974: Make asyncio `swap_current_task` safe in free-threaded build (GH-122317)
* gh-120974: Make asyncio `swap_current_task` safe in free-threaded build
(cherry picked from commit
b5e6fb39a246bf7ee470d58632cdf588bb9d0298 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Fri, 2 Aug 2024 12:07:27 +0000 (14:07 +0200)]
[3.13] gh-121723: Relax constraints on queue objects for `logging.handlers.QueueHandler`. (GH-122154) (GH-122603)
(cherry picked from commit
fb864c76cd5e450e789a7b4095832e118cc49a39 )
T. Wouters [Fri, 2 Aug 2024 11:18:49 +0000 (13:18 +0200)]
[3.13] Add the Python 3.13 abidump, and enable the ABI check. (#122583)
dd the Python 3.13 abidump, and enable the ABI check.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Aug 2024 06:45:03 +0000 (08:45 +0200)]
[3.13] gh-122544: Change OS image in readthedocs.yml to ubuntu-24.04 (GH-122568) (#122593)
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Thu, 1 Aug 2024 09:49:49 +0000 (11:49 +0200)]
[3.13] gh-122384: Mark strings from Download page for translation (GH-122385) (#122553)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Thomas Wouters [Thu, 1 Aug 2024 09:02:31 +0000 (11:02 +0200)]
Post 3.13.0rc1
Thomas Wouters [Wed, 31 Jul 2024 18:10:21 +0000 (20:10 +0200)]
Python 3.13.0rc1
T. Wouters [Wed, 31 Jul 2024 18:03:22 +0000 (20:03 +0200)]
[3.13] Update the expected bytecode magic number in test_importlib.test_util (#122513)
Update the expected bytecode magic number in test_importlib.test_util.
Petr Viktorin [Wed, 31 Jul 2024 09:31:44 +0000 (11:31 +0200)]
[3.13] gh-120906: Support arbitrary hashable keys in FrameLocalsProxy (GH-122309) (#122488)
[3.13] gh-120906: Support arbitrary hashable keys in FrameLocalsProxy (GH-122309)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
(cherry picked from commit
5912487938ac4b517209082ab9e6d2d3d0fb4f4d )
Miss Islington (bot) [Wed, 31 Jul 2024 09:01:20 +0000 (11:01 +0200)]
[3.13] Move change detection to separate workflow in CI (GH-122336) (#122510)
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>
Miss Islington (bot) [Wed, 31 Jul 2024 08:48:59 +0000 (10:48 +0200)]
[3.13] gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload. (GH-122493) (#122504)
gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload. (GH-122493)
(cherry picked from commit
f071f01b7b7e19d7d6b3a4b0ec62f820ecb14660 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 31 Jul 2024 07:20:20 +0000 (09:20 +0200)]
[3.13] Docs: bump Sphinx to 8.0 and update constraints (GH-122496) (#122499)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 31 Jul 2024 00:49:14 +0000 (02:49 +0200)]
[3.13] gh-116622: Fix testPyObjectPrintOSError on Android (GH-122487) (#122490)
gh-116622: Fix testPyObjectPrintOSError on Android (GH-122487)
Adds extra handling for way BSD/Android return errors from calls to fwrite.
(cherry picked from commit
82db5728136ebec3a1d221570b810b4128a21255 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Tue, 30 Jul 2024 22:54:01 +0000 (00:54 +0200)]
[3.13] GH-122482: Make About IDLE direct discussion to DPO (GH-122483) (#122485)
Currently, idle-dev@python.org and idle-dev mailing list
serve to collect spam (90+%). Change About IDLE to direct
discussions to discuss.python.org. Users are already
doing so.
(cherry picked from commit
29c04dfa2718dd25ad8b381a1027045b312f9739 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 30 Jul 2024 20:00:36 +0000 (22:00 +0200)]
[3.13] Remove outdated note about instance methods from datamodel.rst (GH-122471) (#122479)
Remove outdated note about instance methods from datamodel.rst (GH-122471)
(cherry picked from commit
c68cb8e0c9bd75ded25578c2fba6469e55a06e93 )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 19:34:22 +0000 (21:34 +0200)]
[3.13] gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217) (#122451)
gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217)
(cherry picked from commit
d1a1bca1f0550a4715f1bf32b1586caa7bc4487b )
Co-authored-by: Dino Viehland <dinoviehland@meta.com>
Miss Islington (bot) [Tue, 30 Jul 2024 18:18:25 +0000 (20:18 +0200)]
[3.13] gh-117657: Avoid race in `PAUSE_ADAPTIVE_COUNTER` in free-threaded build (GH-122190) (#122475)
The adaptive counter doesn't do anything currently in the free-threaded
build and TSan reports a data race due to concurrent modifications to
the counter.
(cherry picked from commit
2b163aa9e796b312bb0549d49145d26e4904768e )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 17:21:17 +0000 (19:21 +0200)]
[3.13] gh-116402: Avoid readline in test_builtin TTY input tests (GH-122447) (GH-122472)
(cherry picked from commit
1d8e45390733d3eb29164799ea10f8406f53e830 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Dino Viehland [Tue, 30 Jul 2024 16:13:31 +0000 (09:13 -0700)]
[3.13] gh-122208: Don't delivery PyDict_EVENT_ADDED until it can't fail (#122326)
Don't delivery PyDict_EVENT_ADDED until it can't fail
Miss Islington (bot) [Tue, 30 Jul 2024 15:54:56 +0000 (17:54 +0200)]
[3.13] gh-121946: Temporarily switch to llvm-17 in TSan CI again (GH-122466) (GH-122467)
The Ubuntu package for llvm-18 is broken
(cherry picked from commit
8fb88b22b7a932ff16002dd19e904f9cafd59e9f )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 09:24:35 +0000 (11:24 +0200)]
[3.13] gh-121474: Add threading.Barrier parties arg sanity check. (GH-121480) (GH-122444)
(cherry picked from commit
d27a53fc02a87e76066fc4e15ff1fff3922a482d )
Co-authored-by: Clinton <pygeek@users.noreply.github.com>
Miss Islington (bot) [Tue, 30 Jul 2024 09:17:35 +0000 (11:17 +0200)]
[3.13] gh-122400: Handle ValueError in filecmp (GH-122401) (GH-122441)
(cherry picked from commit
3a9b2aae615165a40614db9aaa8b90c55ff0c7f9 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Tue, 30 Jul 2024 08:05:09 +0000 (10:05 +0200)]
[3.13] gh-105733: Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it. (GH-122281) (GH-122440)
gh-105733: Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it. (GH-122281)
Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it.
Partially reverts
2211454fe210637ed7fabda12690dac6cc9a8149
(cherry picked from commit
3833d27f985a62c4709dcd9dc73724fc19d46ebf )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 07:36:08 +0000 (09:36 +0200)]
[3.13] gh-122420: Fix accounting for immortal interned strings in refleak.py (GH-122421) (GH-122430)
The `_PyUnicode_Intern*` functions already adjust the total refcount, so
we don't want to readjust it in refleak.py.
(cherry picked from commit
ac8da34621a574cd5773217404757a294025ba49 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 04:08:35 +0000 (06:08 +0200)]
[3.13] GH-121970: Extract ``audit_events`` into a new extension (GH-122325) (#122434)
Miss Islington (bot) [Tue, 30 Jul 2024 03:40:02 +0000 (05:40 +0200)]
[3.13] gh-122133: Authenticate socket connection for `socket.socketpair()` fallback (GH-122134) (GH-122424)
Authenticate socket connection for `socket.socketpair()` fallback when the platform does not have a native `socketpair` C API. We authenticate in-process using `getsocketname` and `getpeername` (thanks to Nathaniel J Smith for that suggestion).
(cherry picked from commit
78df1043dbdce5c989600616f9f87b4ee72944e5 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Brandt Bucher [Mon, 29 Jul 2024 21:51:19 +0000 (14:51 -0700)]
[3.13] GH-116090: Fire RAISE events from _FOR_ITER_TIER_TWO (GH-122419)
(cherry picked from commit
15d4cd096758ca089c6bd6ed808c34cca676d9bb )
Adam Turner [Mon, 29 Jul 2024 21:45:16 +0000 (22:45 +0100)]
[3.13] GH-122085: Use include files for C API deprecations (GH-109843) (#122422)
(cherry picked from commit
76bdfa4cd02532519fb43ae91244e2b4b3650d78 )
Miss Islington (bot) [Mon, 29 Jul 2024 19:16:15 +0000 (21:16 +0200)]
[3.13] gh-122311: Fix a refleak in pickle (GH-122411) (GH-122415)
(cherry picked from commit
68840e91ac6689d3954b98a9ab136e194b5250b8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Mon, 29 Jul 2024 18:55:28 +0000 (21:55 +0300)]
Revert "[3.13] gh-120713: Normalize year with century for datetime.strftime (GH-120820) (GH-121144)" (GH-122408)
This reverts commit
009618f1125838af3c4afc772f2593637766fd45 .
Eric Snow [Mon, 29 Jul 2024 16:25:02 +0000 (10:25 -0600)]
[3.13] gh-117482: Fix the Slot Wrapper Inheritance Tests (gh-122249)
The tests were only checking cases where the slot wrapper was present in the initial case. They were missing when the slot wrapper was added in the additional initializations. This fixes that.
(cherry-picked from commit
490e0ad83ac72c5688dfbbab4eac61ccfd7be5fd , AKA gh-122248)
Kirill Podoprigora [Mon, 29 Jul 2024 14:16:46 +0000 (17:16 +0300)]
[3.13] gh-122292: Split up ``Lib/test/test_ast.py`` into a couple of … (#122393)
[3.13] gh-122292: Split up ``Lib/test/test_ast.py`` into a couple of files (GH-122293)
(cherry picked from commit
9187484dd97f6beb94fc17676014706922e380e1 )
Miss Islington (bot) [Mon, 29 Jul 2024 09:27:14 +0000 (11:27 +0200)]
[3.13] gh-122311: Fix some error messages in pickle (GH-122386) (GH-122387)
(cherry picked from commit
3b034d26eb8480f8d12ae11f42d038d24cf8498a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 28 Jul 2024 08:56:49 +0000 (10:56 +0200)]
[3.13] gh-122311: Add more tests for pickle (GH-122376) (GH-122377)
(cherry picked from commit
bc93923a2dee00751e44da58b6967c63e3f5c392 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 28 Jul 2024 08:09:00 +0000 (10:09 +0200)]
[3.13] gh-122085: Create dedicated page for deprecations (GH-122352) (#122374)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Pablo Galindo Salgado [Sat, 27 Jul 2024 19:27:01 +0000 (20:27 +0100)]
[3.13] gh-122300: Preserve AST nodes for format specifiers with single elements (GH-122308) (#122364)
(cherry picked from commit
db2d8b6db1b56c2bd3802b86f9b76da33e8898d7 )
Miss Islington (bot) [Sat, 27 Jul 2024 17:19:09 +0000 (19:19 +0200)]
[3.13] GH-121462: pathlib docs: improve table of corresponding os/os.path functions (GH-121465) (#122359)
Re-order table of corresponding functions with the following priorities:
1. Pure functionality is at the top
2. `os.path` functions are shown before `os` functions
3. Similar functionality is kept together
4. Functionality follows docs order where possible
Add a few missed correspondences:
- `os.path.isjunction` and `Path.is_junction`
- `os.path.ismount` and `Path.is_mount`
- `os.lstat()` and `Path.lstat()`
- `os.lchmod()` and `Path.lchmod()`
Also add footnotes describing a few differences.
(cherry picked from commit
cbac8a3888411587beb026e246889154fbdd49a3 )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Miss Islington (bot) [Sat, 27 Jul 2024 14:34:08 +0000 (16:34 +0200)]
[3.13] gh-122044: Don't error during gitignore filtering with no files (GH-122045) (#122355)
Co-authored-by: Seth Michael Larson <seth@python.org>
Hugo van Kemenade [Sat, 27 Jul 2024 11:42:49 +0000 (14:42 +0300)]
[3.13] gh-122085: Use include files for `whatsnew/3.14.rst` deprecations (GH-122242) (#122350)
Miss Islington (bot) [Sat, 27 Jul 2024 10:54:49 +0000 (12:54 +0200)]
[3.13] gh-122170: Handle ValueError raised by os.stat() in linecache (GH-122176) (GH-122348)
(cherry picked from commit
7a6d4ccf0ec16e09f0d8b21c5a0c591e5e3e45f7 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sat, 27 Jul 2024 08:51:02 +0000 (10:51 +0200)]
[3.13] gh-122291: Intern latin-1 one-byte strings at startup (GH-122303) (GH-122347)
(cherry picked from commit
bb09ba679223666e01f8da780f97888a29d07131 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>