]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
10 months ago[3.13] gh-108202: Document calendar.Calendar.firstweekday (GH-128566) (#128579)
Miss Islington (bot) [Tue, 7 Jan 2025 08:05:09 +0000 (09:05 +0100)] 
[3.13] gh-108202: Document calendar.Calendar.firstweekday (GH-128566) (#128579)

(cherry picked from commit b3cbd8f1b58b9e71df20bdda9960e7d3190c509e)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
10 months ago[3.13] gh-128146: Exclude os/log.h import on older macOS versions. (GH-128165) (...
Miss Islington (bot) [Tue, 7 Jan 2025 05:36:00 +0000 (06:36 +0100)] 
[3.13] gh-128146: Exclude os/log.h import on older macOS versions. (GH-128165) (#128575)

gh-128146: Exclude os/log.h import on older macOS versions. (GH-128165)

Reworks the handling of Apple system log handling to account for older macOS
versions that don't provide os-log.
(cherry picked from commit e837a1f71e832ce8f551a6fac05e346f654457e0)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
10 months ago[3.13] gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and `setfirs...
Miss Islington (bot) [Mon, 6 Jan 2025 23:45:26 +0000 (00:45 +0100)] 
[3.13] gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and `setfirstweekday` (GH-127579) (#128564)

(cherry picked from commit 953b49e5468d02afaddadc2307f4763422078603)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
10 months ago[3.13] gh-90241: Clarify documentation for PyUnicode_FSConverter and PyUnicode_FSDeco...
Miss Islington (bot) [Mon, 6 Jan 2025 21:20:26 +0000 (22:20 +0100)] 
[3.13] gh-90241: Clarify documentation for PyUnicode_FSConverter and PyUnicode_FSDecoder (GH-128451) (GH-128542)

(cherry picked from commit 657d7b77e5c69967e9c0000b986fa4872d13958c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
10 months ago[3.13] gh-77214: Update outdated documentation for numeric PyArg_Parse formats (GH...
Miss Islington (bot) [Mon, 6 Jan 2025 10:56:14 +0000 (11:56 +0100)] 
[3.13] gh-77214: Update outdated documentation for numeric PyArg_Parse formats (GH-128454) (GH-128538)

(cherry picked from commit 8d15058d61681e98579cf3fbd3c6fd13b3df6a72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
10 months ago[3.13] gh-114990: Add missing mixin methods in collections.abc's document (GH-114991...
Miss Islington (bot) [Mon, 6 Jan 2025 10:03:05 +0000 (11:03 +0100)] 
[3.13] gh-114990: Add missing mixin methods in collections.abc's document (GH-114991) (#128535)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
10 months ago[3.13] gh-128519: Align the docstring of untokenize() to match the docs (GH-128521...
Miss Islington (bot) [Mon, 6 Jan 2025 09:05:54 +0000 (10:05 +0100)] 
[3.13] gh-128519: Align the docstring of untokenize() to match the docs (GH-128521) (#128531)

(cherry picked from commit aef52ca8b334ff90e8032da39f4d06e7b5130eb9)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
10 months ago[3.13] Docs: fix `MessageDefect` references in email.policy docs (GH-128468) (#128526)
Miss Islington (bot) [Sun, 5 Jan 2025 22:04:39 +0000 (23:04 +0100)] 
[3.13] Docs: fix `MessageDefect` references in email.policy docs (GH-128468) (#128526)

(cherry picked from commit 3b231be8f000ae59faa04d5a2f1af11beafee866)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
10 months ago[3.13] gh-128504: Upgrade doctest to ubuntu-24.04 (GH-128506) (#128517)
Miss Islington (bot) [Sun, 5 Jan 2025 13:58:26 +0000 (14:58 +0100)] 
[3.13] gh-128504: Upgrade doctest to ubuntu-24.04 (GH-128506) (#128517)

gh-128504: Upgrade doctest to ubuntu-24.04 (GH-128506)
(cherry picked from commit 2228e92da31ca7344a163498f848973a1b356597)

Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 months ago[3.13] gh-128437: Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` (gh-128455...
Miss Islington (bot) [Sun, 5 Jan 2025 09:22:34 +0000 (10:22 +0100)] 
[3.13] gh-128437: Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` (gh-128455) (gh-128512)

gh-128437: Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` (gh-128455)

Add `BOLT_COMMON_FLAGS` with `-update-debug-sections`

(cherry picked from commit b60044b838f3ea97395cd6f3adbd5330356fc273)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
10 months ago[3.13] gh-127553: Remove outdated TODO comment in _pydatetime (GH-127564) (#128500)
Miss Islington (bot) [Sat, 4 Jan 2025 23:01:03 +0000 (00:01 +0100)] 
[3.13] gh-127553: Remove outdated TODO comment in _pydatetime (GH-127564) (#128500)

(cherry picked from commit e8b6b39ff707378da654e15ccddde9c28cefdd30)

Co-authored-by: Beomsoo Kim <beoms424@gmail.com>
10 months ago[3.13] gh-127954: Document PyObject_DelItemString (GH-127986) (#128496)
Miss Islington (bot) [Sat, 4 Jan 2025 20:53:30 +0000 (21:53 +0100)] 
[3.13] gh-127954: Document PyObject_DelItemString (GH-127986) (#128496)

(cherry picked from commit 8ade15343d5daec3bf79ff7c47f03726fb2bcadf)

Co-authored-by: RUANG (James Roy) <rruuaanng@outlook.com>
10 months ago[3.13] Docs: amend json.dump() post gh-128482 (GH-128489) (#128493)
Miss Islington (bot) [Sat, 4 Jan 2025 19:03:01 +0000 (20:03 +0100)] 
[3.13] Docs: amend json.dump() post gh-128482 (GH-128489) (#128493)

(cherry picked from commit 87ee76062a7eb9c0fa2b94e36cfed21d86ae90ac)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
10 months ago[3.13] gh-126719: Clarify math.fmod docs (GH-127741) (#128491)
Miss Islington (bot) [Sat, 4 Jan 2025 17:44:36 +0000 (18:44 +0100)] 
[3.13] gh-126719: Clarify math.fmod docs (GH-127741) (#128491)

(cherry picked from commit f28d471fbe99f9eaac05d60ed40da47b0b56fe86)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.13] Docs: mark up json.dump() using parameter list (GH-128482) (#128486)
Miss Islington (bot) [Sat, 4 Jan 2025 15:49:57 +0000 (16:49 +0100)] 
[3.13] Docs: mark up json.dump() using parameter list (GH-128482) (#128486)

(cherry picked from commit a0088b40bb212dc132e147d04f9287cabd72d163)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 months ago[3.13] gh-128152: Argument Clinic: ignore pre-processor directives inside C comments...
Miss Islington (bot) [Sat, 4 Jan 2025 11:09:25 +0000 (12:09 +0100)] 
[3.13] gh-128152: Argument Clinic: ignore pre-processor directives inside C comments (GH-128464) (#128478)

(cherry picked from commit a4e773c540cfd3a9c2bb3b5033d2f79ef50962c8)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
10 months ago[3.13] gh-128354: Consistently use LIBS over LDFLAGS in library build… (#128465)
Zanie Blue [Sat, 4 Jan 2025 00:50:13 +0000 (18:50 -0600)] 
[3.13] gh-128354: Consistently use LIBS over LDFLAGS in library build… (#128465)

(cherry picked from commit b75ed951d4de8ba85349d80c8e7f097b3cd6052f)

10 months ago[3.13] gh-128456: Use '-reorder-functions=cdsort' for BOLT builds (GH-128457) (#128461)
Miss Islington (bot) [Fri, 3 Jan 2025 23:49:21 +0000 (00:49 +0100)] 
[3.13] gh-128456: Use '-reorder-functions=cdsort' for BOLT builds (GH-128457) (#128461)

'hfsort+' is deprecated in favor of 'cdsort'.

(cherry picked from commit 4974bbdb290b61a2d8860de490fde1228c296753)

Co-authored-by: Zanie Blue <contact@zanie.dev>
10 months ago[3.13] gh-127903: Fix a crash on debug builds when calling `Objects/unicodeobject...
Miss Islington (bot) [Fri, 3 Jan 2025 19:20:30 +0000 (20:20 +0100)] 
[3.13] gh-127903: Fix a crash on debug builds when calling `Objects/unicodeobject::_copy_characters` (GH-127876) (#128458)

gh-127903: Fix a crash on debug builds when calling `Objects/unicodeobject::_copy_characters`` (GH-127876)
(cherry picked from commit 46cb6340d7bad955edfc0a20f6a52dabc03b0932)

Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
10 months ago[3.13] gh-125674: Doc: Fix type of newfunc first parameter (GH-125675) (#128449)
Miss Islington (bot) [Fri, 3 Jan 2025 14:12:24 +0000 (15:12 +0100)] 
[3.13] gh-125674: Doc: Fix type of newfunc first parameter (GH-125675) (#128449)

(cherry picked from commit 616468b87bc5bcf5a4db688637ef748e1243db8a)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
10 months ago[3.13] gh-108202: Document calendar.TextCalendar formatting helpers (GH-127608) ...
Miss Islington (bot) [Fri, 3 Jan 2025 10:03:45 +0000 (11:03 +0100)] 
[3.13] gh-108202: Document calendar.TextCalendar formatting helpers (GH-127608) (#128440)

Document the following TextCalendar methods:
- formatday()
- formatmonthname()
- formatweekday()
- formatweekheader()

(cherry picked from commit bb73426cafb78691b249ffa50f1872ab6f899d4a)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
10 months ago[3.13] gh-128400: Stop-the-world when manually calling `faulthandler` (GH-128422...
Miss Islington (bot) [Thu, 2 Jan 2025 19:21:16 +0000 (20:21 +0100)] 
[3.13] gh-128400: Stop-the-world when manually calling `faulthandler` (GH-128422) (GH-128423)

(cherry picked from commit c9356feef28e6dfc4dc32830d3427a5ae0e426e2)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
10 months ago[3.13] gh-128013: fix data race in PyUnicode_AsUTF8AndSize on free-threading (#128021...
Kumar Aditya [Thu, 2 Jan 2025 16:40:17 +0000 (22:10 +0530)] 
[3.13] gh-128013: fix data race in PyUnicode_AsUTF8AndSize on free-threading (#128021) (#128417)

10 months ago[3.13] gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap() ...
Miss Islington (bot) [Thu, 2 Jan 2025 16:14:18 +0000 (17:14 +0100)] 
[3.13] gh-128014:  Fix passing default='' to the tkinter method wm_iconbitmap() (GH-128015) (GH-128418)

(cherry picked from commit 58e9f95c4aa970db32a94b9152b51ede22f823bd)

Co-authored-by: Zhikang Yan <2951256653@qq.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
10 months ago[3.13] Revert "Doc: Show object descriptions in the table of contents (GH-125757...
Miss Islington (bot) [Thu, 2 Jan 2025 14:40:19 +0000 (15:40 +0100)] 
[3.13] Revert "Doc: Show object descriptions in the table of contents (GH-125757)" (GH-128406) (#128413)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 months ago[3.13] gh-123925: Fix building curses on platforms without libncursesw (GH-128405...
Miss Islington (bot) [Thu, 2 Jan 2025 12:01:40 +0000 (13:01 +0100)] 
[3.13] gh-123925: Fix building curses on platforms without libncursesw (GH-128405) (GH-128407)

(cherry picked from commit 8d16919a06a55a50756bf083221a6f6cab43de50)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
10 months ago[3.13] gh-128349: Use `.. data::` instead of `.. class::` for pre-defined decimal...
Miss Islington (bot) [Thu, 2 Jan 2025 07:28:12 +0000 (08:28 +0100)] 
[3.13] gh-128349: Use `.. data::` instead of `.. class::` for pre-defined decimal `Context` objects (GH-128379) (#128401)

gh-128349: Use `.. data::` instead of `.. class::` for pre-defined decimal `Context` objects (GH-128379)
(cherry picked from commit 60c65184695a3eab766b3bc26fc99f695deb998f)

Co-authored-by: abkmystery <36216019+abkmystery@users.noreply.github.com>
10 months ago[3.13] Reword `about.rst` to not limit Sphinx (GH-128325) (#128382)
Miss Islington (bot) [Tue, 31 Dec 2024 21:28:59 +0000 (22:28 +0100)] 
[3.13] Reword `about.rst` to not limit Sphinx (GH-128325) (#128382)

Reword `about.rst` to not limit Sphinx (GH-128325)
(cherry picked from commit c5438fdf4706a70bdd19338edc000dacffff6837)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
10 months ago[3.13] gh-88834: Unify the instance check for typing.Union and types.UnionType (GH...
Miss Islington (bot) [Tue, 31 Dec 2024 18:45:03 +0000 (19:45 +0100)] 
[3.13] gh-88834: Unify the instance check for typing.Union and types.UnionType (GH-128363) (GH-128370)

Union now uses the instance checks against its parameters instead of
the subclass checks.
(cherry picked from commit b2ac70a62ad1be8e037ce45ccf5f1b753ea5e64b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
10 months ago[3.13] gh-128342: Specify timeout unit in subprocess docstrings (GH-128343) (#128365)
Miss Islington (bot) [Mon, 30 Dec 2024 21:15:44 +0000 (22:15 +0100)] 
[3.13] gh-128342: Specify timeout unit in subprocess docstrings (GH-128343) (#128365)

gh-128342: Specify timeout unit in subprocess docstrings (GH-128343)

Specify timeout unit (seconds) in subprocess docstrings
(cherry picked from commit dafe7a44630aa32bb411cceb45c7b7df725e3fe3)

Co-authored-by: n-l-i <57808975+n-l-i@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
10 months ago[3.13] gh-128321: Set LIBS instead of LDFLAGS when checking sqlite3 requirements...
Miss Islington (bot) [Mon, 30 Dec 2024 17:48:32 +0000 (18:48 +0100)] 
[3.13] gh-128321: Set LIBS instead of LDFLAGS when checking sqlite3 requirements (GH-128322) (#128356)

(cherry picked from commit 81376fef76a53fb79893bfa9c9db18d97c228fbe)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
10 months ago[3.13] gh-128317: Document `calendar.TextCalendar.formatweek` (GH-128353) (#128357)
Miss Islington (bot) [Mon, 30 Dec 2024 17:40:29 +0000 (18:40 +0100)] 
[3.13] gh-128317: Document `calendar.TextCalendar.formatweek` (GH-128353) (#128357)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 months ago[3.13] gh-127586: multiprocessing.Pool does not properly restore blocked signals...
Miss Islington (bot) [Sun, 29 Dec 2024 19:02:53 +0000 (20:02 +0100)] 
[3.13] gh-127586: multiprocessing.Pool does not properly restore blocked signals (try 2) (GH-128011) (#128298)

gh-127586: multiprocessing.Pool does not properly restore blocked signals (try 2) (GH-128011)

Correct pthread_sigmask in resource_tracker to restore old signals

Using SIG_UNBLOCK to remove blocked "ignored signals" may accidentally
cause side effects if the calling parent already had said signals
blocked to begin with and did not intend to unblock them when
creating a pool. Use SIG_SETMASK instead with the previous mask of
blocked signals to restore the original blocked set.
(cherry picked from commit aeb9b65aa26444529e4adc7d6e5b0d3dd9889ec2)

Co-authored-by: Stephen Hansen <stephen.paul.hansen@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
10 months ago[3.13] Mention loop_factory argument in docstring for asyncio.run() (GH-128288) ...
Miss Islington (bot) [Fri, 27 Dec 2024 14:22:25 +0000 (15:22 +0100)] 
[3.13] Mention loop_factory argument in docstring for asyncio.run() (GH-128288) (#128291)

Mention loop_factory argument in docstring for asyncio.run() (GH-128288)
(cherry picked from commit 0b5f1fae573a2c658eb000433ad7b87e9c40c697)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
10 months ago[3.13] gh-125887: Update PyObject_HasAttr exception behavior (GH-125907) (#128283)
Miss Islington (bot) [Fri, 27 Dec 2024 02:03:38 +0000 (03:03 +0100)] 
[3.13] gh-125887: Update PyObject_HasAttr exception behavior (GH-125907) (#128283)

gh-125887: Update PyObject_HasAttr exception behavior (GH-125907)

Update PyObject_HasAttr exception behavior

(cherry picked from commit 08a0728d6c32986d35edb26872b4512a71ae60f3)

Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
10 months ago[3.13] gh-127537: Add __class_getitem__ to the python implementation of functools...
Miss Islington (bot) [Fri, 27 Dec 2024 01:25:56 +0000 (02:25 +0100)] 
[3.13] gh-127537: Add __class_getitem__ to the python implementation of functools.partial (GH-127537) (#128281)

gh-127537: Add __class_getitem__ to the python implementation of functools.partial (GH-127537)
(cherry picked from commit 401bba6b58497ce59e7b45ad33e43ae8c67abcb9)

Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
10 months ago[3.13] Clean up redundant ifdef in list getitem (GH-128257) (#128276)
Miss Islington (bot) [Thu, 26 Dec 2024 15:04:32 +0000 (16:04 +0100)] 
[3.13] Clean up redundant ifdef in list getitem (GH-128257) (#128276)

Clean up redundant ifdef in list getitem (GH-128257)

It's already inside a `Py_GIL_DISABLED` block so the `#else` clause is always unused.
(cherry picked from commit 42f7a00ae8b6b3fa09115e24b9512216c6c8978e)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
10 months ago[3.13] gh-128198: Add missing error checks for usages of PyIter_Next() (GH-128199...
Serhiy Storchaka [Thu, 26 Dec 2024 10:39:47 +0000 (12:39 +0200)] 
[3.13] gh-128198: Add missing error checks for usages of PyIter_Next() (GH-128199) (GH-128272)

(cherry picked from commit 5c814c83cdd3dc42bd9682106ffb7ade7ce6b5b3)

Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>
10 months ago[3.13] gh-126664: revert: Use `else` instead of `finally` in docs explaining "with...
Miss Islington (bot) [Tue, 24 Dec 2024 18:55:57 +0000 (19:55 +0100)] 
[3.13] gh-126664: revert: Use `else` instead of `finally` in docs explaining "with" (GH-128169) (#128170)

gh-126664: revert: Use `else` instead of `finally` in docs explaining "with" (GH-128169)

Revert "gh-126664: Use `else` instead of `finally` in "The with statement" documentation. (GH-126665)"

This reverts commit 25257d61cfccc3b4189f96390a5c4db73fd5302c.
(cherry picked from commit 228f275737615cc9be713a8c3f9325b359bf8aec)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
10 months ago[3.13] gh-112328: Make EnumDict usable on its own and document it (GH-123669) (GH...
Ethan Furman [Tue, 24 Dec 2024 18:50:23 +0000 (10:50 -0800)] 
[3.13] gh-112328: Make EnumDict usable on its own and document it (GH-123669) (GH-128142)

Co-authored-by: Petr Viktorin <pviktori@redhat.com>
10 months ago[3.13] gh-128227: Regenerate `Doc/requirements-oldest-sphinx.txt` (GH-128228) (#128229)
Miss Islington (bot) [Tue, 24 Dec 2024 18:06:12 +0000 (19:06 +0100)] 
[3.13] gh-128227: Regenerate `Doc/requirements-oldest-sphinx.txt` (GH-128228) (#128229)

gh-128227: Regenerate `Doc/requirements-oldest-sphinx.txt` (GH-128228)
(cherry picked from commit 7985d460c731b2c48419a33fc1820f9512bb6f21)

Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>
10 months ago[3.13] gh-127847: Fix position in the special-cased zipfile seek (GH-127856) (#128225)
Miss Islington (bot) [Tue, 24 Dec 2024 16:20:58 +0000 (17:20 +0100)] 
[3.13] gh-127847: Fix position in the special-cased zipfile seek (GH-127856) (#128225)

gh-127847: Fix position in the special-cased zipfile seek (GH-127856)

---------
(cherry picked from commit 7ed6c5c6961d0849f163d4d449fb36bae312b6bc)

Co-authored-by: Dima Ryazanov <dima@bucket.xxx>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
10 months agogh-128217: Validate the normalized_environment variable instead of the similarly...
Miss Islington (bot) [Tue, 24 Dec 2024 13:29:56 +0000 (14:29 +0100)] 
gh-128217: Validate the normalized_environment variable instead of the similarly named function (GH-128220)

(cherry picked from commit 3ddd70ceaaf67b111ee4251817e150396d6d10a9)

Co-authored-by: Sergey Muraviov <smurav@mail.ru>
10 months ago[3.13] gh-126180: Remove getopt and optparse deprecation notices (GH-128191)
Miss Islington (bot) [Mon, 23 Dec 2024 04:40:59 +0000 (05:40 +0100)] 
[3.13] gh-126180: Remove getopt and optparse deprecation notices (GH-128191)

* Remove getopt and optparse deprecation notices
* Add new docs sections for command line app helper libraries
* Add guidance on choosing a CLI parsing library to the optparse docs
* Link to the new guidance from the argparse and getopt docs
* Reword intro in docs section for superseded stdlib modules
* Reframe the optparse->argparse guide as a migration guide
  rather than as an upgrade guide

---------
(cherry picked from commit 831b6de6d725c697f2f61fd35c4448cd8a9354ff)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
10 months ago[3.13] gh-128049: Fix type confusion bug with the return value of a custom ExceptionG...
Miss Islington (bot) [Fri, 20 Dec 2024 20:18:44 +0000 (21:18 +0100)] 
[3.13] gh-128049: Fix type confusion bug with the return value of a custom ExceptionGroup split function (GH-128079) (#128139)

gh-128049: Fix type confusion bug with the return value of a custom ExceptionGroup split function (GH-128079)
(cherry picked from commit 3879ca0100942ae15a09ac22889cbe3e46d424eb)

Co-authored-by: Nico-Posada <102486290+Nico-Posada@users.noreply.github.com>
10 months ago[3.13] gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120...
Miss Islington (bot) [Fri, 20 Dec 2024 13:32:58 +0000 (14:32 +0100)] 
[3.13] gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) (#128123)

gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120)
(cherry picked from commit cbfe3023e46b544b80ea1a38a8c900c6fb881554)

Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.13] gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (GH...
Miss Islington (bot) [Fri, 20 Dec 2024 08:46:54 +0000 (09:46 +0100)] 
[3.13] gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (GH-128047) (#128114)

gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (GH-128047)

I missed the extra `PyModule_Check` in GH-127660 because I was looking at
3.12 as the base implementation for import from. This meant that I
missed the `PyModuleCheck` introduced in GH-112661.
(cherry picked from commit 45e6dd63b88a782f2ec96ab1da54eb5a074d8f4c)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
10 months ago[3.13] gh-128083: Fix macro redefinition warning in clinic. (GH-127950) (#128102)
Peter Bierma [Thu, 19 Dec 2024 21:29:14 +0000 (16:29 -0500)] 
[3.13] gh-128083: Fix macro redefinition warning in clinic. (GH-127950) (#128102)

(cherry picked from commit b5d1e4552f0ba40d8380368e1b099261686a89cf)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
10 months ago[3.13] gh-128062: Fix the font size and shortcut display of the turtledemo menu ...
Miss Islington (bot) [Thu, 19 Dec 2024 20:47:24 +0000 (21:47 +0100)] 
[3.13] gh-128062: Fix the font size and shortcut display of the turtledemo menu (GH-128063) (#128101)

gh-128062: Fix the font size and shortcut display of the turtledemo menu (GH-128063)

Leave the font of the menu bar the default to keep it consistent with the rest of the world. Display the shortcut keys in the right way, using the 'accelerator' option.
---------

(cherry picked from commit e163e8d4e1a9844b8615ef38b9917b887a377948)

Co-authored-by: Zhikang Yan <2951256653@qq.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
10 months ago[3.13] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with GitHub...
Miss Islington (bot) [Thu, 19 Dec 2024 15:20:07 +0000 (16:20 +0100)] 
[3.13] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with GitHub image's version (GH-128090) (#128096)

gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with GitHub image's version (GH-128090)

brew link --overwrite tcl-tk@8 to prevent conflict with GitHub image's version
(cherry picked from commit 46dc1ba9c6e8b95635fa27607d01d6108d8f677e)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 months ago[3.13] gh-126742: add NEWS entry for fix of localized error messages (GH-128025)...
Miss Islington (bot) [Thu, 19 Dec 2024 13:52:32 +0000 (14:52 +0100)] 
[3.13] gh-126742: add NEWS entry for fix of localized error messages (GH-128025) (GH-128059)

(cherry picked from commit 2610bccfdf55bc6519808f8e1b5db2cfb03ae809)

10 months ago[3.13] gh-122706: fix docs for asyncio ssl sockets (GH-128092) (#128094)
Miss Islington (bot) [Thu, 19 Dec 2024 12:56:05 +0000 (13:56 +0100)] 
[3.13] gh-122706: fix docs for asyncio ssl sockets (GH-128092) (#128094)

gh-122706: fix docs for asyncio ssl sockets (GH-128092)
(cherry picked from commit 19c5134d57764d3db7b1cacec4f090c74849a5c1)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
10 months ago[3.13] gh-126742: Avoid checking for library filename in test_ctypes (GH-128034)...
Miss Islington (bot) [Wed, 18 Dec 2024 08:49:13 +0000 (09:49 +0100)] 
[3.13] gh-126742: Avoid checking for library filename in test_ctypes (GH-128034) (#128056)

gh-126742: Avoid checking for library filename in test_ctypes (GH-128034)

Avoid checking for library filename in `dlerror()` error messages of test_ctypes.
(cherry picked from commit 335e24fb0a5805ac1ecdbc01e0331b38fc33849d)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 months ago[3.13] gh-127060: Disable traceback colors in IDLE (GH-128028) (#128052)
Miss Islington (bot) [Wed, 18 Dec 2024 05:58:57 +0000 (06:58 +0100)] 
[3.13] gh-127060: Disable traceback colors in IDLE (GH-128028) (#128052)

Set TERM environment variable to "dumb" to disable traceback colors
in IDLE, since IDLE doesn't understand ANSI escape sequences.

(cherry picked from commit 559b0e7013f9cbf42a12fe9c86048d5cbb2f6f22)

Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.13] gh-126742: Add _PyErr_SetLocaleString, use it for gdbm & dlerror messages...
Miss Islington (bot) [Tue, 17 Dec 2024 11:45:29 +0000 (12:45 +0100)] 
[3.13] gh-126742: Add _PyErr_SetLocaleString, use it for gdbm & dlerror messages (GH-126746) (GH-128023)

- Add a helper to set an error from locale-encoded `char*`
- Use the helper for gdbm & dlerror messages
(cherry picked from commit 7303f06846b69016a075bca7ad7c6055f29ad024)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.13] Free arena on _PyCompile_AstOptimize failure in Py_CompileStringObject (GH...
Miss Islington (bot) [Mon, 16 Dec 2024 21:26:39 +0000 (22:26 +0100)] 
[3.13] Free arena on _PyCompile_AstOptimize failure in Py_CompileStringObject (GH-128006)

Free arena on _PyCompile_AstOptimize failure in Py_CompileStringObject (GH-127910)

After commit 10a91d7e9 introduced arena cleanup, commit 2dfbd4f36
removed the free call when _PyCompile_AstOptimize fails.

(cherry picked from commit cfeaa992ba9bad9be2687afcafd85156703d74e8)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
10 months ago[3.13] Minor readability improvements for the itertools recipes (gh-127928) (gh-127999)
Miss Islington (bot) [Mon, 16 Dec 2024 17:33:20 +0000 (18:33 +0100)] 
[3.13] Minor readability improvements for the itertools recipes (gh-127928) (gh-127999)

10 months ago[3.13] Simplify and speed-up an itertools recipe (gh-127848) (gh-127998)
Miss Islington (bot) [Mon, 16 Dec 2024 17:26:58 +0000 (18:26 +0100)] 
[3.13] Simplify and speed-up an itertools recipe (gh-127848) (gh-127998)

10 months ago[3.13] Fix typo in itertools docs (gh-127995) (gh-127996)
Miss Islington (bot) [Mon, 16 Dec 2024 17:20:14 +0000 (18:20 +0100)] 
[3.13] Fix typo in itertools docs (gh-127995) (gh-127996)

10 months ago[3.13] gh-127906: Fix Py_BUILD_ASSERT_EXPR() on Windows (#127994)
Victor Stinner [Mon, 16 Dec 2024 17:17:01 +0000 (18:17 +0100)] 
[3.13] gh-127906: Fix Py_BUILD_ASSERT_EXPR() on Windows (#127994)

gh-127906: Fix Py_BUILD_ASSERT_EXPR() on Windows

Change Py_BUILD_ASSERT_EXPR implementation on Windows to avoid a
compiler warning about an unnamed structure.

10 months ago[3.13] Clarify ast docs to use a less confusing example for `ast.ParamSpec` (GH-12795...
Miss Islington (bot) [Sun, 15 Dec 2024 12:35:25 +0000 (13:35 +0100)] 
[3.13] Clarify ast docs to use a less confusing example for `ast.ParamSpec` (GH-127955) (#127959)

Clarify ast docs to use a less confusing example for `ast.ParamSpec` (GH-127955)

Fix typo in ast docs: ParamSpec defaults
(cherry picked from commit 7900a85019457c14e8c6abac532846bc9f26760d)

Co-authored-by: Steve C <diceroll123@gmail.com>
10 months ago[3.13] gh-127353: Allow to force color output on Windows V2 (GH-127926) (#127944)
Miss Islington (bot) [Sun, 15 Dec 2024 08:41:11 +0000 (09:41 +0100)] 
[3.13] gh-127353: Allow to force color output on Windows V2 (GH-127926) (#127944)

gh-127353: Allow to force color output on Windows V2 (GH-127926)
(cherry picked from commit 0ac40acec045c4ce780cf7d887fcbe4c661e82b7)

Co-authored-by: Andrey Efremov <duxus@yandex.ru>
10 months ago[3.13] gh-127852: add remark about ',' separator (GH-127854) (#127941)
Miss Islington (bot) [Sat, 14 Dec 2024 13:34:18 +0000 (14:34 +0100)] 
[3.13] gh-127852: add remark about ',' separator (GH-127854) (#127941)

Specify that it is valid for floats and ints with 'd' presentation and an error otherwise.
---------

(cherry picked from commit e2325c9db0650fc06d909eb2b5930c0573f24f71)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
10 months ago[3.13] gh-127906: Backport test_cext changes from the main branch (#127923)
Victor Stinner [Fri, 13 Dec 2024 15:04:08 +0000 (16:04 +0100)] 
[3.13] gh-127906: Backport test_cext changes from the main branch (#127923)

10 months ago[3.13] gh-127906: Test the limited C API in test_cppext (GH-127916) (#127919)
Miss Islington (bot) [Fri, 13 Dec 2024 14:12:07 +0000 (15:12 +0100)] 
[3.13] gh-127906: Test the limited C API in test_cppext (GH-127916) (#127919)

gh-127906: Test the limited C API in test_cppext (GH-127916)
(cherry picked from commit d05a4e6a0d366b854a3103cae0c941811fd48c4c)

Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.13] gh-127870: Detect recursive calls in ctypes _as_parameter_ handling (GH-127872...
Miss Islington (bot) [Fri, 13 Dec 2024 13:19:41 +0000 (14:19 +0100)] 
[3.13] gh-127870: Detect recursive calls in ctypes _as_parameter_ handling (GH-127872) (#127917)

gh-127870: Detect recursive calls in ctypes _as_parameter_ handling (GH-127872)
(cherry picked from commit 6ff38fc4e2af8e795dc791be6ea596d2146d4119)

Co-authored-by: Victor Stinner <vstinner@python.org>
10 months ago[3.13] gh-127906: Backport test_cppext changes from the main branch (#127914)
Victor Stinner [Fri, 13 Dec 2024 12:51:48 +0000 (13:51 +0100)] 
[3.13] gh-127906: Backport test_cppext changes from the main branch (#127914)

10 months ago[3.13] link to the correct output method in documentation (GH-127857) (#127900)
Miss Islington (bot) [Fri, 13 Dec 2024 09:37:46 +0000 (10:37 +0100)] 
[3.13] link to the correct output method in documentation (GH-127857) (#127900)

link to the correct output method in documentation (GH-127857)
(cherry picked from commit 11ff3286b7e821bf439bc7caa0fa712e3bc3846a)

Co-authored-by: Viktor Kálmán <kviktor@users.noreply.github.com>
10 months ago[3.13] Document PyObject_SelfIter (GH-127861) (#127898)
Miss Islington (bot) [Fri, 13 Dec 2024 09:37:28 +0000 (10:37 +0100)] 
[3.13] Document PyObject_SelfIter (GH-127861) (#127898)

Document PyObject_SelfIter (GH-127861)
(cherry picked from commit 58942a07df8811afba9c58dc16c1aab244ccf27a)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
10 months ago[3.13] gh-127845: Minor improvements to iOS test runner script (GH-127846) (#127892)
Miss Islington (bot) [Thu, 12 Dec 2024 22:17:58 +0000 (23:17 +0100)] 
[3.13] gh-127845: Minor improvements to iOS test runner script (GH-127846) (#127892)

Uses symlinks to install iOS framework into testbed clone, adds a verbose mode
to the iOS runner to hide most Xcode output, adds another mechanism to disable
terminal colors, and ensures that stdout is flushed after every write.
(cherry picked from commit ba2d2fda93a03a91ac6cdff319fd23ef51848d51)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
10 months ago[3.13] Fix typo in traceback docs (GH-127884) (#127890)
Miss Islington (bot) [Thu, 12 Dec 2024 21:51:10 +0000 (22:51 +0100)] 
[3.13] Fix typo in traceback docs (GH-127884) (#127890)

Co-authored-by: Daniel Haag <121057143+denialhaag@users.noreply.github.com>
10 months ago[3.13] Fix typos in `Lib/_pydecimal.py` (GH-127700) (#127887)
Miss Islington (bot) [Thu, 12 Dec 2024 20:49:09 +0000 (21:49 +0100)] 
[3.13] Fix typos in `Lib/_pydecimal.py` (GH-127700) (#127887)

Fix typos in `Lib/_pydecimal.py` (GH-127700)
(cherry picked from commit ed037d229f64db90aea00f397e9ce1b2f4a22d3f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
10 months ago[3.13] gh-127865: Fix build failure for systems without thread local support (GH...
Miss Islington (bot) [Thu, 12 Dec 2024 18:32:10 +0000 (19:32 +0100)] 
[3.13] gh-127865: Fix build failure for systems without thread local support (GH-127866) (GH-127882)

This PR fixes the build issue introduced by the commit 628f6eb from
GH-112207 on systems without thread local support.
(cherry picked from commit f823910bbd4bf01ec3e1ab7b3cb1d77815138296)

Co-authored-by: velemas <10437413+velemas@users.noreply.github.com>
10 months ago[3.13] gh-126937: ctypes: add test for maximum size of a struct field (GH-126938...
Petr Viktorin [Thu, 12 Dec 2024 12:02:57 +0000 (13:02 +0100)] 
[3.13] gh-126937: ctypes: add test for maximum size of a struct field (GH-126938) (GH-127825)

This backports the *test* from GH-126938, with changed limit and exception class.

Co-authored-by: Melissa0x1f992 <70096546+Melissa0x1f992@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
10 months ago[3.13] gh-127257: ssl: Raise OSError for ERR_LIB_SYS (GH-127361) (GH-127812)
Miss Islington (bot) [Thu, 12 Dec 2024 11:44:53 +0000 (12:44 +0100)] 
[3.13] gh-127257: ssl: Raise OSError for ERR_LIB_SYS (GH-127361) (GH-127812)

gh-127257: ssl: Raise OSError for ERR_LIB_SYS (GH-127361)

From the ERR_raise manpage:

    ERR_LIB_SYS

        This "library code" indicates that a system error is
        being reported.  In this case, the reason code given
        to `ERR_raise()` and `ERR_raise_data()` *must* be
        `errno(3)`.

This PR only handles ERR_LIB_SYS for the high-lever error types
SSL_ERROR_SYSCALL and SSL_ERROR_SSL, i.e., not the ones where
OpenSSL indicates it has some more information about the issue.
(cherry picked from commit f4b31edf2d9d72878dab1f66a36913b5bcc848ec)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
10 months ago[3.13] gh-118915: C API: Document frame locals proxies. (GH-127720) (#127831)
Miss Islington (bot) [Wed, 11 Dec 2024 16:34:35 +0000 (17:34 +0100)] 
[3.13] gh-118915: C API: Document frame locals proxies. (GH-127720) (#127831)

gh-118915: C API: Document frame locals proxies. (GH-127720)
(cherry picked from commit dd9da738ad1d420fabafaded3fe63912b2b17cfb)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
10 months ago[3.13] CI: Use bash to properly expand variable (GH-127822) (#127824)
Miss Islington (bot) [Wed, 11 Dec 2024 15:42:17 +0000 (16:42 +0100)] 
[3.13] CI: Use bash to properly expand variable (GH-127822) (#127824)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 months ago[3.13] gh-123401: Fix http.cookies module to support obsolete RFC 850 date format...
Miss Islington (bot) [Wed, 11 Dec 2024 15:38:09 +0000 (16:38 +0100)] 
[3.13] gh-123401: Fix http.cookies module to support obsolete RFC 850 date format (GH-123405) (#127828)

gh-123401: Fix http.cookies module to support obsolete RFC 850 date format (GH-123405)
(cherry picked from commit 359389ed51aecc107681e600b71852c0a97304e1)

Co-authored-by: Nano <nanoapezlk@gmail.com>
Co-authored-by: Wulian <1055917385@qq.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
11 months ago[3.13] gh-127791: Fix, document, and test `PyUnstable_AtExit` (GH-127793) (#127819)
Peter Bierma [Wed, 11 Dec 2024 13:40:45 +0000 (08:40 -0500)] 
[3.13] gh-127791: Fix, document, and test `PyUnstable_AtExit` (GH-127793) (#127819)

* Fix merge conflicts.

* [3.13] gh-127791: Fix, document, and test `PyUnstable_AtExit` (GH-127793)
(cherry picked from commit d5d84c3f13fe7fe591b375c41979d362bc11957a)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
11 months ago[3.13] gh-126076: Account for relocated objects in tracemalloc (GH-126077) (#127823)
Pablo Galindo Salgado [Wed, 11 Dec 2024 13:15:37 +0000 (14:15 +0100)] 
[3.13] gh-126076: Account for relocated objects in tracemalloc (GH-126077) (#127823)

(cherry picked from commit 30aeb00d367d0cc9e5a7603371636cddea09f1c0)

11 months ago[3.13] Add `extern "C"` around `PyTraceMalloc_` functions. (GH-127772) (#127815)
Miss Islington (bot) [Wed, 11 Dec 2024 13:07:44 +0000 (14:07 +0100)] 
[3.13] Add `extern "C"` around `PyTraceMalloc_` functions. (GH-127772) (#127815)

Add `extern "C"` around `PyTraceMalloc_` functions. (GH-127772)

Pretty much everything else exported by Python.h has an extern "C"
annotation, yet this header appears to be missing one.
(cherry picked from commit 2cdeb61b57e638ae46a04386330a12abe9cddf2c)

Co-authored-by: Peter Hawkins <hawkinsp@cs.stanford.edu>
11 months ago[3.13] gh-127563: use `dk_log2_index_bytes=3` in empty dicts (GH-127568) (GH-127798)
Miss Islington (bot) [Wed, 11 Dec 2024 08:24:14 +0000 (09:24 +0100)] 
[3.13] gh-127563: use `dk_log2_index_bytes=3` in empty dicts (GH-127568) (GH-127798)

This fixes a UBSan failure (unaligned zero-size memcpy) in `dictobject.c`.
(cherry picked from commit 9af96f440618304e7cc609c246e1f8c8b2d7a119)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
11 months ago[3.13] gh-126821: Add versionadded annotation to use_system_logger feature. (GH-12775...
Miss Islington (bot) [Tue, 10 Dec 2024 21:38:12 +0000 (22:38 +0100)] 
[3.13] gh-126821: Add versionadded annotation to use_system_logger feature. (GH-127755) (#127806)

Add versionadded annotation to use_system_logger feature.
(cherry picked from commit 51216857ca8283f5b41c8cf9874238da56da4968)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
11 months ago[3.13] Docs: Fix indents in `xmlrpc.client.rst` (GH-127782) (#127799)
Miss Islington (bot) [Tue, 10 Dec 2024 17:41:01 +0000 (18:41 +0100)] 
[3.13] Docs: Fix indents in `xmlrpc.client.rst` (GH-127782) (#127799)

Docs: Fix indents in `xmlrpc.client.rst` (GH-127782)
(cherry picked from commit 035f512046337e64a018d11fdaa3b21758625291)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
11 months ago[3.13] Add zizmor to pre-commit and fix most findings (#127749) (#127786)
Hugo van Kemenade [Tue, 10 Dec 2024 13:48:26 +0000 (15:48 +0200)] 
[3.13] Add zizmor to pre-commit and fix most findings (#127749) (#127786)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit ae31df354d02e12bf656954c5c72380d96c1dc0e)

11 months ago[3.13] gh-127637: add tests for `dis` command-line interface (#127759) (#127781)
Bénédikt Tran [Tue, 10 Dec 2024 12:32:32 +0000 (13:32 +0100)] 
[3.13] gh-127637: add tests for `dis` command-line interface (#127759) (#127781)

11 months ago[3.13] gh-101100: Fix sphinx warnings in `whatsnew/3.0.rst` (GH-127662) (#127783)
Miss Islington (bot) [Tue, 10 Dec 2024 10:45:30 +0000 (11:45 +0100)] 
[3.13] gh-101100: Fix sphinx warnings in `whatsnew/3.0.rst` (GH-127662) (#127783)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
11 months ago[3.13] gh-126775: make linecache.checkcache threadsafe and GC re-entrency safe (GH...
Miss Islington (bot) [Tue, 10 Dec 2024 08:06:26 +0000 (09:06 +0100)] 
[3.13] gh-126775: make linecache.checkcache threadsafe and GC re-entrency safe (GH-126776) (#127778)

gh-126775: make linecache.checkcache threadsafe and GC re-entrency safe (GH-126776)

(cherry picked from commit 2233c303e476496fc4c85a29a1429a7e4b1f707b)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bartosz Sławecki <bartoszpiotrslawecki@gmail.com>
11 months ago[3.13] gh-127651: Use __file__ in diagnostics if origin is missing (#127660) (#127775)
Shantanu [Tue, 10 Dec 2024 05:21:55 +0000 (21:21 -0800)] 
[3.13] gh-127651: Use __file__ in diagnostics if origin is missing (#127660) (#127775)

gh-127651: Use __file__ in diagnostics if origin is missing (#127660)

See the left hand side in https://github.com/python/cpython/pull/123929/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59deL2840-L2849

---------

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 3983527c3a6b389e373a233e514919555853ccb3)

11 months agogh-127732: Add Windows Server 2025 detection to platform module (GH-127733)
Miss Islington (bot) [Mon, 9 Dec 2024 12:50:34 +0000 (13:50 +0100)] 
gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)

(cherry picked from commit 5eb7fd4d0fc37b91058086181afebec41e66e5ad)

Co-authored-by: Wulian <1055917385@qq.com>
11 months ago[3.13] gh-126925: Modify how iOS test results are gathered (GH-127592) (#127754)
Russell Keith-Magee [Mon, 9 Dec 2024 06:39:11 +0000 (14:39 +0800)] 
[3.13] gh-126925: Modify how iOS test results are gathered (GH-127592) (#127754)

Adds a `use_system_log` config item to enable stdout/stderr redirection for
Apple platforms. This log streaming is then used by a new iOS test runner
script, allowing the display of test suite output at runtime. The iOS test
runner script can be used by any Python project, not just the CPython test
suite.
(cherry picked from commit 2041a95e68ebf6d13f867e214ada28affa830669)

11 months ago[3.13] gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth...
Miss Islington (bot) [Sun, 8 Dec 2024 20:15:35 +0000 (21:15 +0100)] 
[3.13] gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth.__init__` (GH-127735) (#127744)

gh-127734: improve signature of `urllib.request.HTTPPasswordMgrWithPriorAuth.__init__` (GH-127735)

improve signature of urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
(cherry picked from commit a03efb533a58fd13fb0cc7f4a5c02c8406a407bd)

Co-authored-by: Stephen Morton <git@tungol.org>
11 months ago[3.13] Give `poplib.POP3.rpop` a proper docstring (GH-127370) (#127721)
Miss Islington (bot) [Sat, 7 Dec 2024 16:41:23 +0000 (17:41 +0100)] 
[3.13] Give `poplib.POP3.rpop` a proper docstring (GH-127370) (#127721)

Give `poplib.POP3.rpop` a proper docstring (GH-127370)

Previously `poplib.POP3.rpop` had a "Not sure what this does" docstring, now it has been fixed.
(cherry picked from commit 27d0d2141319d82709eb09ba20065df3e1714fab)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
11 months ago[3.13] Fix typo in `Lib/_android_support.py` (GH-127699) (#127703)
Miss Islington (bot) [Fri, 6 Dec 2024 18:14:12 +0000 (19:14 +0100)] 
[3.13] Fix typo in `Lib/_android_support.py` (GH-127699) (#127703)

Fix typo in `Lib/_android_support.py` (GH-127699)
(cherry picked from commit e59caf67cdb8dae26470f00599ea8dbb00968a73)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
11 months ago[3.13] gh-127552: Remove comment questioning 4-digit restriction for ‘Y’ in datetime...
Miss Islington (bot) [Fri, 6 Dec 2024 17:17:32 +0000 (18:17 +0100)] 
[3.13] gh-127552: Remove comment questioning 4-digit restriction for ‘Y’ in datetime.strptime patterns (GH-127590) GH-127650)

gh-127552: Remove comment questioning 4-digit restriction for ‘Y’ in datetime.strptime patterns (GH-127590)

The code has required 4 digits for the year since its inclusion in the stdlib in 2002 (over 22 years ago as of this commit).
(cherry picked from commit 51cfa569e379f84b3418db0971a71b1ef575a42b)

Co-authored-by: Beomsoo Kim <beoms424@gmail.com>
11 months ago[3.13] gh-125610: Fix `STORE_ATTR_INSTANCE_VALUE` specialization check (GH-125612...
Miss Islington (bot) [Fri, 6 Dec 2024 16:14:26 +0000 (17:14 +0100)] 
[3.13] gh-125610: Fix `STORE_ATTR_INSTANCE_VALUE` specialization check (GH-125612) (GH-127698)

The `STORE_ATTR_INSTANCE_VALUE` opcode doesn't support objects with
non-NULL managed dictionaries, so don't specialize to that op in that case.
(cherry picked from commit a353455fca1b8f468ff3ffbb4b5e316510b4fd43)

Co-authored-by: Sam Gross <colesbury@gmail.com>
11 months ago[3.13] gh-101100: amend references starting with `!~` in gh-127054 (GH-127684) (...
Miss Islington (bot) [Fri, 6 Dec 2024 14:19:08 +0000 (15:19 +0100)] 
[3.13] gh-101100: amend references starting with `!~` in gh-127054 (GH-127684) (#127692)

gh-101100: amend references starting with `!~` in gh-127054 (GH-127684)
(cherry picked from commit 77a61c0465c27c1c4ba7cddf4638d9ed75259671)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
11 months ago[3.13] gh-127655: Ensure `_SelectorSocketTransport.writelines` pauses the protocol...
Miss Islington (bot) [Fri, 6 Dec 2024 05:12:23 +0000 (06:12 +0100)] 
[3.13] gh-127655: Ensure `_SelectorSocketTransport.writelines` pauses the protocol if needed (GH-127656) (#127663)

gh-127655: Ensure `_SelectorSocketTransport.writelines` pauses the protocol if needed (GH-127656)

Ensure `_SelectorSocketTransport.writelines` pauses the protocol if it reaches the high water mark as needed.
(cherry picked from commit e991ac8f2037d78140e417cc9a9486223eb3e786)

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
11 months ago[3.13] gh-127582: Make object resurrection thread-safe for free threading. (GH-127612...
Sam Gross [Thu, 5 Dec 2024 23:49:33 +0000 (23:49 +0000)] 
[3.13] gh-127582: Make object resurrection thread-safe for free threading. (GH-127612) (GH-127659)

Objects may be temporarily "resurrected" in destructors when calling
finalizers or watcher callbacks. We previously undid the resurrection
by decrementing the reference count using `Py_SET_REFCNT`. This was not
thread-safe because other threads might be accessing the object
(modifying its reference count) if it was exposed by the finalizer,
watcher callback, or temporarily accessed by a racy dictionary or list
access.

This adds internal-only thread-safe functions for temporary object
resurrection during destructors.
(cherry picked from commit f4f530804b9d8f089eba0f157ec2144c03b13651)

11 months ago[3.13] [Docs] GDB howto: Fix block type of a cast example (GH-127621) (#127653)
Miss Islington (bot) [Thu, 5 Dec 2024 20:58:36 +0000 (21:58 +0100)] 
[3.13] [Docs] GDB howto: Fix block type of a cast example (GH-127621) (#127653)

[Docs] GDB howto: Fix block type of a cast example (GH-127621)
(cherry picked from commit 657d0e99aa8754372786120d6ec00c9d9970e775)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>