]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sat, 15 Feb 2025 03:37:05 +0000 (04:37 +0100)]
[3.13] gh-130106: Fix a typo in unittest.mock doc (GH-130107) (#130143)
gh-130106: Fix a typo in unittest.mock doc (GH-130107)
(cherry picked from commit
d2e60d8e598b622573b68b80b4fbf98c021dd087 )
Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Andrew Svetlov [Fri, 14 Feb 2025 16:34:17 +0000 (17:34 +0100)]
[3.13] gh-128308: pass `**kwargs` to asyncio task_factory (GH-128768) (#130084)
* [3.13] gh-128308: pass `**kwargs` to asyncio task_factory (GH-128768)
(cherry picked from commit
38a99568763604ccec5d5027f0658100ad76876f )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
---------
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Thu, 13 Feb 2025 14:42:21 +0000 (15:42 +0100)]
[3.13] Update manpage environment variables and command line arguments (GH-129623) (#130078)
Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 13 Feb 2025 06:47:05 +0000 (07:47 +0100)]
[3.13] gh-130025: Correct handling of symlinks during iOS testbed framework installation. (GH-130026) (#130073)
Correct handling of symlinks during iOS testbed framework installation.
(cherry picked from commit
625470a7d2c6aa79b5e60ffe17785ccc2547a090 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Thu, 13 Feb 2025 02:03:00 +0000 (03:03 +0100)]
[3.13] gh-129693: Suppress `SyntaxWarning` in test_fstring (GH-129830) (#130068)
gh-129693: Suppress `SyntaxWarning` in test_fstring (GH-129830)
Suppress SyntaxWarning in test_fstring
(cherry picked from commit
2dd018848ca254047835850b8b95d805cbf7efaf )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Pablo Galindo Salgado [Thu, 13 Feb 2025 01:49:25 +0000 (01:49 +0000)]
[3.13] gh-116042: Fix location for SyntaxErrors of invalid escapes in the tokenizer (GH-116049) (#130066)
(cherry picked from commit
56eda256336310a08d4beb75b998488cb359444b )
(cherry picked from commit
369704b428982968346c1482fccdac8b25fdd836 )
Miss Islington (bot) [Wed, 12 Feb 2025 22:56:02 +0000 (23:56 +0100)]
[3.13] gh-129912: Fix references to `Py_TPFLAGS_MANAGED_DICT` (gh-130044) (gh-130059)
(cherry picked from commit
791cdfe1416a591e240b8ffc6f10eb6f659c8277 )
Co-authored-by: Satyam Kumar <isatyamks@gmail.com>
Sam Gross [Wed, 12 Feb 2025 15:43:25 +0000 (10:43 -0500)]
[3.13] gh-128759: Fix accesses to `tp_version_tag`. (GH-129750) (GH-130042)
We should use a relaxed atomic load in the free threading build in
`PyType_Modified()` because that's called without the type lock held.
It's not necessary to use atomics in `type_modified_unlocked()`.
We should also use `FT_ATOMIC_STORE_UINT_RELAXED()` instead of the
`UINT32` variant because `tp_version_tag` is declared as `unsigned int`.
(cherry picked from commit
57f45ee2d8ee23c2a1d1daba4095a5a044169419 )
Kumar Aditya [Wed, 12 Feb 2025 13:33:56 +0000 (19:03 +0530)]
[3.13] gh-129983: fix data race in compile_template in sre.c (#130038)
gh-129983: fix data race in compile_template in sre.c (#130015)
(cherry picked from commit
3cf68cdd3e1809df4e426c61f6990de63747ec6f )
Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
Miss Islington (bot) [Wed, 12 Feb 2025 08:24:00 +0000 (09:24 +0100)]
[3.13] gh-59149: Setup documentation for IDLE on Linux and add section in Editors (GH-130003) (#130027)
---------
(cherry picked from commit
555ee43d929ad4b917db2caee3f2c10a2636832c )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Sam Gross [Wed, 12 Feb 2025 01:45:02 +0000 (20:45 -0500)]
[3.13] gh-128133: use relaxed atomics for hash of bytes (GH-128412) (#130022)
(cherry picked from commit
0706bab1c0985761cdbc07ab448f98c717276b36 )
Co-authored-by: Abhijeet <abhijeetsharma2002@gmail.com>
Sam Gross [Tue, 11 Feb 2025 23:18:12 +0000 (18:18 -0500)]
[3.13] gh-129967: Fix race condition in `repr(set)` (gh-129978) (gh-130020)
The call to `PySequence_List()` could temporarily unlock and relock the
set, allowing the items to be cleared and return the incorrect
notation `{}` for a empty set (it should be `set()`).
(cherry picked from commit
a7427f2db937adb4c787754deb4c337f1894fe86 )
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Tue, 11 Feb 2025 21:37:25 +0000 (22:37 +0100)]
[3.13] gh-101100: Docs: Fix some typos in the document (GH-129988) (#129997)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 11 Feb 2025 19:28:25 +0000 (20:28 +0100)]
[3.13] gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module` (GH-129855) (GH-130013)
gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module` (GH-129855)
(cherry picked from commit
aa81a6f6e4f265565da9781d0bf95c7d16ddd961 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Mon, 10 Feb 2025 20:48:24 +0000 (21:48 +0100)]
[3.13] gh-128100: Use atomic dictionary load in `_PyObject_GenericGetAttrWithDict` (GH-128297) (GH-129979)
(cherry picked from commit
47d2cb8eb7595df5940225867dbb66b6dd59413a )
Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Feb 2025 16:36:06 +0000 (17:36 +0100)]
[3.13] gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934) (GH-129961)
gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934)
(cherry picked from commit
8d9d3e4ecb4c908df6560b54138dd5af73b3ed47 )
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Mon, 10 Feb 2025 14:30:31 +0000 (15:30 +0100)]
[3.13] gh-127712: Fix `secure` argument of `logging.handlers.SMTPHandler` (GH-127726) (GH-129955)
(cherry picked from commit
d7672e5d5a7b9580a72dbe75d3a9e8840bcc604c )
Miss Islington (bot) [Mon, 10 Feb 2025 12:03:40 +0000 (13:03 +0100)]
[3.13] gh-129583: update bundled pip to 25.0.1 (GH-129909) (#129946)
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Feb 2025 11:26:50 +0000 (12:26 +0100)]
[3.13] gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950) (GH-129951)
(cherry picked from commit
7c156a63d3d5aadff0d40af73c0f622f7a0fcea5 )
Miss Islington (bot) [Mon, 10 Feb 2025 10:16:28 +0000 (11:16 +0100)]
[3.13] gh-126554: correct detection of `gcc` for `TestNullDlsym.test_null_dlsym` (GH-129872) (#129944)
gh-126554: correct detection of `gcc` for `TestNullDlsym.test_null_dlsym` (GH-129872)
In case gcc is not available, the test will fail with FileNotFoundError.
So catch the exception to skip the test correctly.
(cherry picked from commit
978211c8a8646b050a8d687ca720f934fcce112c )
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Co-authored-by: Peter Marko <peter.marko@siemens.com>
Miss Islington (bot) [Mon, 10 Feb 2025 05:16:09 +0000 (06:16 +0100)]
[3.13] gh-68400: Remove outdated 2.7 comment (GH-129919) (#129937)
(cherry picked from commit
d9bf3c16e53f04b600e42cd0ac560820e3522b57 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Erlend E. Aasland [Mon, 10 Feb 2025 00:21:33 +0000 (01:21 +0100)]
[3.13] gh-129603: Don't segfault if sqlite3.Row description is None (#129604) (#129923)
(cherry picked from commit
7e6ee50b6b8c760bcefb92ab4ddbc3d85d37a834 )
Miss Islington (bot) [Sun, 9 Feb 2025 21:06:16 +0000 (22:06 +0100)]
[3.13] gh-129870: Skip test_dump_virtual_tables if SQLite lacks FTS4 support (GH-129913) (#129918)
(cherry picked from commit
cda83cade0b684bcb1221a30bfe0b6861abd3b3f )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Sun, 9 Feb 2025 15:47:10 +0000 (16:47 +0100)]
[3.13] gh-129892: Doc: Remove unnecessary role directive in graphlib.py (GH-129896) (#129904)
gh-129892: Doc: Remove unnecessary role directive in graphlib.py (GH-129896)
Change `:exec:ValueError` to `ValueError` in `TopologicalSorter.done()` docstring
(cherry picked from commit
c53730171f18b90202aa0918b3c05412222bb1ec )
Co-authored-by: Nikola Savic <76233425+nikolasavic3@users.noreply.github.com>
Miss Islington (bot) [Sun, 9 Feb 2025 09:19:36 +0000 (10:19 +0100)]
[3.13] gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859) (#129884)
gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859)
In `help.copy_strip`, only copy the text `<section>`. In `help.HelpParser.handle_starttag` and elsewhere, remove code to skip the no longer present html. Add a reminder at the top of idle.rst to run copy_strip after changes.
---------
(cherry picked from commit
6fbf15f98e04f582aeccf5334a94840149ff7cd5 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Terry Jan Reedy [Sun, 9 Feb 2025 07:36:37 +0000 (02:36 -0500)]
[3.13] gh-129876: Initial 3.14 News3.txt entries (GH-129881) (#129882)
Miss Islington (bot) [Sun, 9 Feb 2025 06:37:29 +0000 (07:37 +0100)]
[3.13] gh-112953: Update news to finish 3.13 as main (GH-129877) (#129878)
Entry for patch to 3.13.rc3
(cherry picked from commit
f72977b2f4a29063ae3019e50360f4af869f4149 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 8 Feb 2025 20:14:47 +0000 (21:14 +0100)]
[3.13] gh-129699: Add description to IDLE doc title (GH-129727) (#129864)
gh-129699: Add description to IDLE doc title (GH-129727)
Also extend the 'idlelib' section header. These additions affect both the displayed idle.html file and the contents.html file displayed by clicking the Complete table of contents link on the main docs.python.org page. (The module index entries are generated from the module name and synopsis within module files.)
---------
(cherry picked from commit
33a7094aa680bca66582fec4dcda7d150eb90cd8 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 8 Feb 2025 20:12:22 +0000 (21:12 +0100)]
[3.13] gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) (#129868)
gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866)
mention AF_INET6 and IPv6 in socketserver docs.
(cherry picked from commit
5ce70ad129d2e34a09f8ae6ee0542f4f996fb8ec )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Tomasz Pytel [Sat, 8 Feb 2025 15:59:30 +0000 (10:59 -0500)]
[3.13] gh-128657: fix _hashopenssl ref/data race (GH-128886) (GH-129853)
(cherry picked from commit
6c67904e793828d84716a8c83436c9495235f3a1 )
Miss Islington (bot) [Fri, 7 Feb 2025 15:18:57 +0000 (16:18 +0100)]
[3.13] gh-117657: Fix data race in `dict_dict_merge` (gh-129755) (gh-129808)
Found while running `test_load_attr_module` from `test_opcache` under TSan.
(cherry picked from commit
34379d0a593e5a76e2f754cdd7fccb79f25a4613 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Fri, 7 Feb 2025 00:45:15 +0000 (01:45 +0100)]
[3.13] Add multinomial to the itertools recipes docs (gh-129760) (gh-129762)
Donghee Na [Thu, 6 Feb 2025 23:11:17 +0000 (08:11 +0900)]
[3.13] gh-129533: Update PyGC_Enable/Disable/IsEnabled to use atomic operat… (gh-129756)
gh-129533: Update PyGC_Enable/Disable/IsEnabled to use atomic operation (gh-129563)
(cherry picked from commit
b184abf074c0e1f379a238f07da5616460f36b93 )
Sam Gross [Thu, 6 Feb 2025 19:30:16 +0000 (14:30 -0500)]
[3.13] gh-129732: Fix race on `shared->array` in qsbr code under free-threading (gh-129738) (gh-129747)
The read of `shared->array` should happen under the lock to avoid a race.
(cherry picked from commit
b4ff8b22b3066b814c3758f87eaddfa923e657ed )
Co-authored-by: Peter Hawkins <phawkins@google.com>
Sam Gross [Thu, 6 Feb 2025 18:27:30 +0000 (13:27 -0500)]
[3.13] gh-129668: Fix thread-safety of MemoryError freelist in free threaded build (gh-129704) (gh-129742)
The MemoryError freelist was not thread-safe in the free threaded build.
Use a mutex to protect accesses to the freelist. Unlike other freelists,
the MemoryError freelist is not performance sensitive.
(cherry picked from commit
51b4edb1a4092f60d84f7d14eb41c12085e39c31 )
Miss Islington (bot) [Thu, 6 Feb 2025 17:49:19 +0000 (18:49 +0100)]
[3.13] gh-112020: Rework socketserver examples to be correct (GH-129741) (#129743)
gh-112020: Rework socketserver examples to be correct.
Outdated code updated, the BaseRequestHandler example is now much more
illustrative instead of the bad idea of a single recv() call for TCP.
tested, they now work.
(cherry picked from commit
78377c788e02e91bf43d290d69317198a2e563fd )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Thu, 6 Feb 2025 17:45:28 +0000 (18:45 +0100)]
[3.13] Remove an inaccurate note from `socket.recv` (GH-129733) (#129734)
Remove an inaccurate note from `socket.recv` (GH-129733)
Remove an inaccurate note from socket.recv.
(cherry picked from commit
ded54c3baa57f6727be809f13633b393241c164a )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Adam Turner [Thu, 6 Feb 2025 17:30:03 +0000 (17:30 +0000)]
[3.13] GH-121970: Extract ``implementation_detail`` into a new extension (GH-129663) (#129739)
(cherry picked from commit
4d56c40440c9fd4499d61d24977336d8cd8d8d83 )
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) [Thu, 6 Feb 2025 13:37:22 +0000 (14:37 +0100)]
[3.13] Merge TSAN test matrices in CI (#123278) (#129673)
sobolevn [Thu, 6 Feb 2025 13:22:41 +0000 (16:22 +0300)]
[3.13] gh-129643: Fix `PyList_Insert` in free-threading builds (GH-129680) (#129725)
(cherry picked from commit
63f0406d5ad25a55e49c3903b29407c50a17cfd5 )
Miss Islington (bot) [Thu, 6 Feb 2025 12:47:07 +0000 (13:47 +0100)]
[3.13] gh-118915: Fix bad link in documentation (GH-129691) (GH-129723)
gh-118915: Fix bad link in documentation (GH-129691)
(cherry picked from commit
779d06945cbb59ec187a8c39300fb0ab6f9c0c1d )
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Miss Islington (bot) [Thu, 6 Feb 2025 08:20:05 +0000 (09:20 +0100)]
[3.13] gh-86206: Change IDLE splash line (GH-129698) (#129717)
Replace references to boilerplate files available in About IDLE and instead suggest clicking Help menu.
(cherry picked from commit
d83a8a26f5e321b26bec59f5fd47c9c46c16ab12 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 6 Feb 2025 07:37:50 +0000 (08:37 +0100)]
[3.13] gh-69001: Replace maintainer email in IDLE credits (GH-129588) (#129713)
Instead, anyone requesting credit should submit a PR with contribution summary.
(Also fix typo in existing name.)
(cherry picked from commit
76e018294801ab95f30756c702b63bf6b4c23310 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Wed, 5 Feb 2025 14:42:51 +0000 (15:42 +0100)]
[3.13] gh-128772: Fix pydoc for methods with __module__ is None (GH-129177) (GH-129653)
(cherry picked from commit
979d76620990e6f8d68fa63e0ae0db1ec5b4d14c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
neonene [Wed, 5 Feb 2025 11:22:30 +0000 (20:22 +0900)]
[3.13] gh-129660: Do not use test_embed in PGO profile builds (#129662)
Kumar Aditya [Wed, 5 Feb 2025 08:09:37 +0000 (13:39 +0530)]
[3.13] gh-129643: fix thread safety of `PyList_SetItem` (#129644) (#129677)
gh-129643: fix thread safety of `PyList_SetItem` (#129644)
Thomas Wouters [Tue, 4 Feb 2025 19:40:10 +0000 (20:40 +0100)]
Merge branch '3.13' of https://github.com/python/cpython into 3.13
Thomas Wouters [Tue, 4 Feb 2025 19:37:26 +0000 (20:37 +0100)]
Post 3.13.2
Miss Islington (bot) [Tue, 4 Feb 2025 16:31:20 +0000 (17:31 +0100)]
[3.13] gh-129646: Update the locale alias mapping (GH-129647) (GH-129658)
(cherry picked from commit
f61afca262d3a0aa6a8a501db0b1936c60858e35 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Thomas Wouters [Tue, 4 Feb 2025 14:49:28 +0000 (15:49 +0100)]
Python 3.13.2
Miss Islington (bot) [Tue, 4 Feb 2025 14:49:14 +0000 (15:49 +0100)]
[3.13] gh-129350: Make tests for glob with trailing slash more strict (GH-129376) (GH-129651)
Test that the trailing pathname separator is preserved.
Multiple trailing pathname separators are only preserved if the pattern
does not contain metacharacters, otherwise only one trailing pathname
separator is preserved. This is rather an implementation detail.
(cherry picked from commit
8b5c8508c7f5d98b09792e159ef2396c73da68cd )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Tue, 4 Feb 2025 14:25:18 +0000 (16:25 +0200)]
[3.13] Use roles :data: and :const: for referencing module variables (GH-129507) (GH-129649)
(cherry picked from commit
078ab828b9a21ed0e683941bd141d5017b5f62d9 )
donBarbos [Tue, 4 Feb 2025 14:18:22 +0000 (18:18 +0400)]
[3.13] gh-127349: Add check for correct resizing in REPL (GH-127387) (#129485)
(cherry picked from commit
510fefdc625dd2ed2b6b3975314a59e291b94ae8 )
Miss Islington (bot) [Tue, 4 Feb 2025 00:05:51 +0000 (01:05 +0100)]
[3.13] gh-129502: Fix handling errors in ctypes callbacks (GH-129504) (#129517)
gh-129502: Fix handling errors in ctypes callbacks (GH-129504)
Unlikely errors in preparing arguments for ctypes callback are now
handled in the same way as errors raised in the callback of in converting
the result of the callback -- using sys.unraisablehook() instead of
sys.excepthook() and not setting sys.last_exc and other variables.
(cherry picked from commit
9d63ae5fe52d95059ab1bcd4cbb1f9e17033c897 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 3 Feb 2025 23:56:23 +0000 (00:56 +0100)]
[3.13] gh-128696: Add arm64 to the get_platform return val description (GH-128701) (#128774)
gh-128696: Add arm64 to the get_platform return val description (GH-128701)
(cherry picked from commit
553cdc6d6856c1b4539a45eb90d0769f7c629355 )
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Miss Islington (bot) [Mon, 3 Feb 2025 23:37:24 +0000 (00:37 +0100)]
[3.13] gh-129345: null check for indent syslogmodule (GH-129348) (#129442)
gh-129345: null check for indent syslogmodule (GH-129348)
(cherry picked from commit
25cf79a0829422bd8479ca0c13c72b769422077b )
Co-authored-by: Burkov Egor <xwooffie@gmail.com>
Miss Islington (bot) [Mon, 3 Feb 2025 23:34:02 +0000 (00:34 +0100)]
[3.13] gh-128078: Use `PyErr_SetRaisedException` in `_PyGen_SetStopIterationValue` (GH-128287) (#128789)
gh-128078: Use `PyErr_SetRaisedException` in `_PyGen_SetStopIterationValue` (GH-128287)
(cherry picked from commit
402b91da87052878b4e7e8946ba91bdf4ee4bebe )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Mon, 3 Feb 2025 12:02:00 +0000 (13:02 +0100)]
[3.13] gh-101944: Clarify PyModule_AddObjectRef() documentation (GH-129433) (#129612)
gh-101944: Clarify PyModule_AddObjectRef() documentation (GH-129433)
(cherry picked from commit
04264a286e5ddfe8ac7423f7376ca34a2ca8b7ba )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 3 Feb 2025 11:52:29 +0000 (12:52 +0100)]
[3.13] gh-129407: Clarify that a `SystemError` isn't always CPython's fault (GH-129410) (#129610)
gh-129407: Clarify that a `SystemError` isn't always CPython's fault (GH-129410)
(cherry picked from commit
39b754a35976924f6df46cd475e889bcf8598ca1 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Mon, 3 Feb 2025 08:28:11 +0000 (09:28 +0100)]
[3.13] gh-126609: Allow translating the ``availability`` directive (GH-129549) (#129584)
gh-126609: Allow translating the ``availability`` directive (GH-129549)
(cherry picked from commit
0612a89ffcf0bb52b1750a3466671ba8daad1d87 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 3 Feb 2025 00:38:44 +0000 (01:38 +0100)]
[3.13] gh-127975: Avoid reusing quote types in ast.unparse if not needed (GH-127980) (#129600)
gh-127975: Avoid reusing quote types in ast.unparse if not needed (GH-127980)
(cherry picked from commit
8df5193d37f70a1478642c4b456dcc7d6df6c117 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Sun, 2 Feb 2025 23:26:38 +0000 (00:26 +0100)]
[3.13] gh-105875: amend sqlite3 docstring wrt. SQLite requirement (GH-129599) (#129602)
(cherry picked from commit
ecd2f84555bf494007420ba5a37adf8d1c23e856 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Jason R. Coombs [Sun, 2 Feb 2025 18:53:23 +0000 (13:53 -0500)]
[3.13] gh-127096: Do not recreate unnamed section on every read in ConfigParser (GH-127228) (#129593)
* Do not recreate unnamed section on every read in ConfigParser
* Remove duplicate section creation code
(cherry picked from commit
914c232e9391e8e5014b089ba12c75d4a3b0cc7f )
Co-authored-by: Andrey Efremov <duxus@yandex.ru>
Collin Funk [Sun, 2 Feb 2025 18:37:32 +0000 (10:37 -0800)]
[3.13] gh-129539: Include sysexits.h before checking EX_OK (#129590)
Previously, the macro would be redefined when the header was included.
Adam Turner [Sun, 2 Feb 2025 16:24:48 +0000 (16:24 +0000)]
[3.13] GH-121970: Extract ``misc_news`` into a new extension (GH-129577) (#129586)
(cherry picked from commit
ae4788809d674f8e27faef2678953be8cf67d4a3 )
Miss Islington (bot) [Sun, 2 Feb 2025 16:12:12 +0000 (17:12 +0100)]
[3.13] gh-115514: Fix incomplete writes after close while using ssl in asyncio(GH-128037) (#129581)
gh-115514: Fix incomplete writes after close while using ssl in asyncio(GH-128037)
(cherry picked from commit
4e38eeafe2ff3bfc686514731d6281fed34a435e )
Co-authored-by: Vojtěch Boček <vbocek@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Sun, 2 Feb 2025 08:12:51 +0000 (09:12 +0100)]
[3.13] gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (GH-129418) (GH-129526)
gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (GH-129418)
* gh-105704: Disallow square brackets ( and ) in domain names for parsed URLs
* Use Sphinx references
* Add mismatched bracket test cases, fix news format
* Add more test coverage for ports
---------
(cherry picked from commit
d89a5f6a6e65511a5f6e0618c4c30a7aa5aba56a )
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Sun, 2 Feb 2025 05:11:30 +0000 (06:11 +0100)]
[3.13] gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465 (GH-129561) (#129564)
gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465 (GH-129561)
Restore the skipUnless removed by GH-119465.
This test can only pass on virtual machines, not actual machines.
actual machines see:
```
self.cli.connect((cid, VSOCKPORT))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: [Errno 19] No such device
```
Reproduced on (Linux) Ubuntu 24.04.1 running 6.8.0-52-generic.
(cherry picked from commit
e1006ce1ded1b18972888ef057718dba6f2c7edd )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Sat, 1 Feb 2025 16:57:58 +0000 (17:57 +0100)]
[3.13] gh-126022: Replace TeX quotation marks with ``"`` in Doc/license.rst (GH-129535) (#129551)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Fri, 31 Jan 2025 15:02:44 +0000 (16:02 +0100)]
[3.13] gh-126108: Fix potential null pointer dereference in `PySys_AddWarnOptionUnicode` (GH-126118) (#129520)
gh-126108: Fix potential null pointer dereference in `PySys_AddWarnOptionUnicode` (GH-126118)
(cherry picked from commit
fad36bf38248130bc48b81a5e7c31a7649a6456e )
Co-authored-by: Valery Fedorenko <federicovalenso@gmail.com>
Victor Stinner [Thu, 30 Jan 2025 19:29:27 +0000 (20:29 +0100)]
[3.13] gh-111495: Add PyFile tests (#129449) (#129477)
gh-111495: Add PyFile tests (#129449)
Add tests for the following functions in test_capi.test_file:
* PyFile_FromFd()
* PyFile_GetLine()
* PyFile_NewStdPrinter()
* PyFile_WriteObject()
* PyFile_WriteString()
* PyObject_AsFileDescriptor()
Add Modules/_testlimitedcapi/file.c file.
Remove test_embed.StdPrinterTests which became redundant.
(cherry picked from commit
4ca9fc08f89bf7172d41e523d9e520eb1729ee8c )
Irit Katriel [Thu, 30 Jan 2025 12:20:13 +0000 (12:20 +0000)]
[3.13] gh-128799: Add frame of except* to traceback when wrapping a naked exception (#128971) (#129299)
Miss Islington (bot) [Thu, 30 Jan 2025 10:22:05 +0000 (11:22 +0100)]
[3.13] gh-129438: Update ``--enable-experimental-jit`` section with install requirements (GH-129450) (#129472)
gh-129438: Update ``--enable-experimental-jit`` section with install requirements (GH-129450)
Add a note to the `JIT` docs that building CPython with `JIT` requires Python 3.11 or newer.
(cherry picked from commit
652f66ac386dad5992c6f7c494871907272503f8 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Miss Islington (bot) [Thu, 30 Jan 2025 09:33:30 +0000 (10:33 +0100)]
[3.13] gh-129403: Fix `ValueError` messages in `asyncio.Barrier` and `threading.Barrier` (GH-129419) (#129468)
gh-129403: Fix `ValueError` messages in `asyncio.Barrier` and `threading.Barrier` (GH-129419)
(cherry picked from commit
bcb25d60b1baf9348e73cbd2359342cea6009c36 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Thu, 30 Jan 2025 08:54:15 +0000 (09:54 +0100)]
[3.13] remove type annotations from multiprocessing. (GH-129381) (#129470)
remove type annotations from multiprocessing. (GH-129381)
* remove type annotations from multiprocessing.
One of them was technically invalid per typing specs... but since we're not
checking these in the stdlib today lets elide them.
https://discuss.python.org/t/static-type-annotations-in-cpython/65068/13
* use the actual comment style annotation format
---------
(cherry picked from commit
71aecc284efdf997939568a4167dbffe1a65b9bf )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Miss Islington (bot) [Wed, 29 Jan 2025 21:23:10 +0000 (22:23 +0100)]
[3.13] gh-125522: Fix bare except in `test_uuid` (GH-129018) (#129455)
gh-125522: Fix bare except in `test_uuid` (GH-129018)
(cherry picked from commit
a1a4e9f39ad86359e148fd193089b3b2a354f71d )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Wed, 29 Jan 2025 16:55:24 +0000 (17:55 +0100)]
[3.13] gh-118761: Improve import time of `subprocess` (GH-129427) (#129447)
gh-118761: Improve import time of `subprocess` (GH-129427)
* subprocess: lazy import signal and locale to improve module import time
(cherry picked from commit
49f24650e4541456872490ec2b59d6d186204891 )
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
Miss Islington (bot) [Wed, 29 Jan 2025 13:40:04 +0000 (14:40 +0100)]
[3.13] CI: Change job name to 'build arm64' on Windows (GH-129434) (#129439)
Miss Islington (bot) [Wed, 29 Jan 2025 11:39:16 +0000 (12:39 +0100)]
[3.13] gh-129409: Fix Integer overflow - SEGV while writing data more than 2GB in CSV file (GH-129413) (#129436)
gh-129409: Fix Integer overflow - SEGV while writing data more than 2GB in CSV file (GH-129413)
(cherry picked from commit
97b0ef05d987ebef354512b516a246feb411e815 )
Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Miss Islington (bot) [Tue, 28 Jan 2025 18:48:51 +0000 (19:48 +0100)]
[3.13] gh-129408: http: Fix typo 'RFF' to RFC' in docstring (GH-129411) (#129414)
gh-129408: http: Fix typo 'RFF' to RFC' in documentation (GH-129411)
(cherry picked from commit
7dd0a7e52ee832559b89d5ccba732c8e91260df8 )
Co-authored-by: Samuel GIFFARD <samuel@giffard.co>
Miss Islington (bot) [Tue, 28 Jan 2025 12:00:54 +0000 (13:00 +0100)]
[3.13] gh-112064: Fix incorrect handling of negative read sizes in `HTTPResponse.read()` (GH-128270) (#129395)
gh-112064: Fix incorrect handling of negative read sizes in `HTTPResponse.read()` (GH-128270)
The parameter `amt` of `HTTPResponse.read()`, which could be a negative integer,
has not been handled before and led to waiting for the connection to close
for `keep-alive connections`. Now, this has been fixed, and passing negative values
to `HTTPResponse().read()` works the same as passing `None` value.
(cherry picked from commit
4d0d24f6e3dff2864007c3cfd1cf7d49c6ee5317 )
Co-authored-by: Yury Manushkin <manushkin@gmail.com>
Miss Islington (bot) [Tue, 28 Jan 2025 00:19:06 +0000 (01:19 +0100)]
[3.13] gh-85046: Document errno constants (GH-126420) (#129383)
(cherry picked from commit
1c3bb200da77f9df30af4717988dad17db086d1a )
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Miss Islington (bot) [Mon, 27 Jan 2025 22:22:56 +0000 (23:22 +0100)]
[3.13] GH-124398: Pin LLVM to 18.1.0 for Windows JIT CI (GH-124399) (#129380)
GH-124398: Pin LLVM to 18.1.0 for Windows JIT CI (GH-124399)
(cherry picked from commit
b4d0d7de0f6d938128bf525e119c18af5632b804 )
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Miss Islington (bot) [Mon, 27 Jan 2025 22:05:59 +0000 (23:05 +0100)]
[3.13] gh-119511: Fix a potential denial of service in imaplib (GH-119514) (GH-129355)
gh-119511: Fix a potential denial of service in imaplib (GH-119514)
The IMAP4 client could consume an arbitrary amount of memory when trying
to connect to a malicious server, because it read a "literal" data with a
single read(size) call, and BufferedReader.read() allocates the bytes
object of the specified size before reading. Now the IMAP4 client reads data
by chunks, therefore the amount of used memory is limited by the
amount of the data actually been sent by the server.
(cherry picked from commit
735f25c5e3a0f74438c86468ec4dfbe219d93c91 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Mon, 27 Jan 2025 17:41:59 +0000 (18:41 +0100)]
[3.13] gh-129346: Handle allocation errors for SQLite aggregate context (GH-129347) (#129372)
(cherry picked from commit
379ab856f59423c570333403a7d5d72f3ea82d52 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Mon, 27 Jan 2025 16:27:11 +0000 (17:27 +0100)]
[3.13] gh-109975: Add list of 3.13 removed library replacements (GH-127816) (#129242)
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
Miss Islington (bot) [Mon, 27 Jan 2025 14:48:05 +0000 (15:48 +0100)]
[3.13] gh-129061: Fix `FORCE_COLOR` and `NO_COLOR` when empty strings (GH-129140) (#129360)
gh-129061: Fix `FORCE_COLOR` and `NO_COLOR` when empty strings (GH-129140)
(cherry picked from commit
9546fe2ef2db921709f3cb355b33bba977658672 )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Russell Keith-Magee [Mon, 27 Jan 2025 07:07:40 +0000 (15:07 +0800)]
[3.13] gh-129156: Fix variable quoting in `android-env.sh` script (GH-129321) (#129332)
Adds quoting to `android-env.sh` to protect against spaces in paths.
(cherry picked from commit
a49225cc66680129f129d1fcf6e20afb37a1a877 )
Co-authored-by: Zanie Blue <contact@zanie.dev>
Miss Islington (bot) [Sun, 26 Jan 2025 17:04:09 +0000 (18:04 +0100)]
[3.13] gh-123987: Fix NotADirectoryError in NamespaceReader when sentinel present (GH-124018) (#129319)
gh-123987: Fix NotADirectoryError in NamespaceReader when sentinel present (GH-124018)
(cherry picked from commit
b543b32eff78ce214e68e8c5fc15a8c843fa8dec )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Sun, 26 Jan 2025 14:51:49 +0000 (15:51 +0100)]
[3.13] gh-126022: Remove zope.org from the permitted linkcheck redirects (GH-129308) (#129317)
Co-authored-by: partev <petrosyan@gmail.com>
Terry Jan Reedy [Sun, 26 Jan 2025 09:42:08 +0000 (04:42 -0500)]
[3.13] gh-71339: Use new assertion methods in test_idle (#129314)
Revise 10 tests in 7 files, with 1 test split into 2.
(cherry picked from commit
dbb25ce )
Miss Islington (bot) [Sun, 26 Jan 2025 03:49:23 +0000 (04:49 +0100)]
[3.13] GH-121970: Remove pyspecific ``PyDecoratorMixin`` patches (GH-129306) (#129309)
GH-121970: Remove pyspecific ``PyDecoratorMixin`` patches (GH-129306)
(cherry picked from commit
0ef8d470b79889de065e94cecd0ee01e45037d3a )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Hugo van Kemenade [Sat, 25 Jan 2025 13:37:14 +0000 (15:37 +0200)]
[3.13] gh-126022: make license.rst consistent with LICENSE (GH-128516) (#129290)
Co-authored-by: partev <petrosyan@gmail.com>
Miss Islington (bot) [Sat, 25 Jan 2025 09:45:22 +0000 (10:45 +0100)]
[3.13] Replace `strict_concatenate = True` with `extra_checks = True` (GH-126391) (#129286)
Replace `strict_concatenate = True` with `extra_checks = True` (GH-126391)
(cherry picked from commit
cc4f0a27704ba1401bd66931f5234be9c6b92ba5 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sat, 25 Jan 2025 09:12:32 +0000 (10:12 +0100)]
[3.13] gh-129248: Filter out the iOS log prefix from testbed runner output. (GH-129252) (#129283)
Filter out the iOS log prefix from testbed runner output.
(cherry picked from commit
a58083811a51764c47fbb7cbd67e87e1124d53e8 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Sat, 25 Jan 2025 03:55:36 +0000 (04:55 +0100)]
[3.13] GH-125722: Remove Sphinx patches (GH-129277) (#129278)
GH-125722: Remove Sphinx patches (GH-129277)
(cherry picked from commit
d40692db06cdae89447c26b6c1b5d2a682c0974f )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 24 Jan 2025 17:00:54 +0000 (18:00 +0100)]
[3.13] Improve tests for _colorize.can_colorize() (GH-129234) (GH-129265)
(cherry picked from commit
7907203bc07387ff2d8e2bcc15d7b8dd3a1ce687 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Victor Stinner [Fri, 24 Jan 2025 13:54:02 +0000 (14:54 +0100)]
[3.13] gh-128679: Clear the ref tracer in _PyTraceMalloc_Stop() (#129258)
_PyTraceMalloc_Stop() now calls PyRefTracer_SetTracer(NULL, NULL).
Miss Islington (bot) [Thu, 23 Jan 2025 21:17:32 +0000 (22:17 +0100)]
[3.13] gh-97850: Remove the mention of removal from `ResourceReader` docs (GH-128602) (#128654)
gh-97850: Remove the mention of removal from `ResourceReader` docs (GH-128602)
Remove the mention of removal from ResourceReader docs
(cherry picked from commit
a1284e97979ff73ad72ad06c796b904137950576 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Thu, 23 Jan 2025 21:17:11 +0000 (22:17 +0100)]
[3.13] gh-126172: Fix a misleading statement in PYTHON_BASIC_REPL documentation (GH-127203) (#129152)
gh-126172: Fix a misleading statement in PYTHON_BASIC_REPL documentation (GH-127203)
Fix a misleading statement in PYTHON_BASIC_REPL documentation.
(cherry picked from commit
f18b2264929c56360c868d7ad77508035d751352 )
Co-authored-by: Michael Kashirin <88917554+mkashirin@users.noreply.github.com>