]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
15 months agoGH-121970: Fix ``gettext`` for audit events (#122651)
Adam Turner [Sat, 3 Aug 2024 16:41:26 +0000 (17:41 +0100)] 
GH-121970: Fix ``gettext`` for audit events (#122651)

15 months agogh-109408: Remove ``.azure-pipelines/pr.yml`` (#122643)
Adam Turner [Sat, 3 Aug 2024 15:11:48 +0000 (16:11 +0100)] 
gh-109408: Remove ``.azure-pipelines/pr.yml`` (#122643)

This no longer does anything useful, beyond wasting Azure resources.

15 months agoDoc: Grammar fix in ``library/ssl.rst``, 'Verifying certificates' (#122646)
scottwoodall [Sat, 3 Aug 2024 13:24:29 +0000 (09:24 -0400)] 
Doc: Grammar fix in ``library/ssl.rst``, 'Verifying certificates' (#122646)

15 months agogh-122334: Fix test_embed failure when missing _ssl module (GH-122630)
neonene [Sat, 3 Aug 2024 13:15:26 +0000 (22:15 +0900)] 
gh-122334: Fix test_embed failure when missing _ssl module (GH-122630)

Co-authored-by: Wulian233 <1055917385@qq.com>
15 months agoGH-109408: Stop running patchcheck in CI (#109895)
Adam Turner [Sat, 3 Aug 2024 11:52:21 +0000 (12:52 +0100)] 
GH-109408: Stop running patchcheck in CI (#109895)

15 months agogh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-#122280)
Sergey B Kirpichev [Sat, 3 Aug 2024 11:20:10 +0000 (14:20 +0300)] 
gh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-#122280)

15 months agoDoc: Improve wording of ``os.path.commonpath()`` (#122627)
Matth-M [Sat, 3 Aug 2024 11:18:59 +0000 (12:18 +0100)] 
Doc: Improve wording of ``os.path.commonpath()`` (#122627)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months agogh-122313: Clean up deep recursion guarding code in the compiler (GH-122640)
Serhiy Storchaka [Sat, 3 Aug 2024 09:45:45 +0000 (12:45 +0300)] 
gh-122313: Clean up deep recursion guarding code in the compiler (GH-122640)

Add ENTER_RECURSIVE and LEAVE_RECURSIVE macros in ast.c, ast_opt.c and
symtable.c. Remove VISIT_QUIT macro in symtable.c.

The current recursion depth counter only needs to be updated during
normal execution -- all functions should just return an error code
if an error occurs.

15 months agogh-122560: add test that comprehension loop var appears only in one scope of the...
Irit Katriel [Fri, 2 Aug 2024 22:56:51 +0000 (23:56 +0100)] 
gh-122560: add test that comprehension loop var appears only in one scope of the symtable (#122582)

15 months agogh-122527: Fix a crash on deallocation of `PyStructSequence` (GH-122577)
Sam Gross [Fri, 2 Aug 2024 16:11:44 +0000 (12:11 -0400)] 
gh-122527: Fix a crash on deallocation of `PyStructSequence` (GH-122577)

The `PyStructSequence` destructor would crash if it was deallocated after
its type's dictionary was cleared by the GC, because it couldn't compute
the "real size" of the instance. This could occur with relatively
straightforward code in the free-threaded build or with a reference
cycle involving the type in the default build, due to differing orders
in which `tp_clear()` was called.

Account for the non-sequence fields in `tp_basicsize` and use that,
along with `Py_SIZE()`, to compute the "real" size of a
`PyStructSequence` in the dealloc function. This avoids the accesses to
the type's dictionary during dealloc, which were unsafe.

15 months agoGH-117224: Move the body of a few large-ish micro-ops into helper functions (GH-122601)
Mark Shannon [Fri, 2 Aug 2024 15:31:17 +0000 (16:31 +0100)] 
GH-117224: Move the body of a few large-ish micro-ops into helper functions (GH-122601)

15 months agogh-122445: populate only modified fields in __static_attributes__ (#122446)
Irit Katriel [Fri, 2 Aug 2024 14:40:42 +0000 (15:40 +0100)] 
gh-122445: populate only modified fields in __static_attributes__ (#122446)

15 months agogh-122334: Fix crash when importing ssl after re-initialization (#122481)
neonene [Fri, 2 Aug 2024 13:36:20 +0000 (22:36 +0900)] 
gh-122334: Fix crash when importing ssl after re-initialization (#122481)

* Fix crash when importing ssl after re-initialization

15 months agogh-120974: Make asyncio `swap_current_task` safe in free-threaded build (#122317)
Sam Gross [Fri, 2 Aug 2024 13:32:08 +0000 (09:32 -0400)] 
gh-120974: Make asyncio `swap_current_task` safe in free-threaded build (#122317)

* gh-120974: Make asyncio `swap_current_task` safe in free-threaded build

15 months agogh-121723: Relax constraints on queue objects for `logging.handlers.QueueHandler...
Bénédikt Tran [Fri, 2 Aug 2024 11:16:32 +0000 (13:16 +0200)] 
gh-121723: Relax constraints on queue objects for `logging.handlers.QueueHandler`. (GH-122154)

15 months agoUpdate PyObject_Del() documentation (#122597)
Victor Stinner [Fri, 2 Aug 2024 10:13:33 +0000 (12:13 +0200)] 
Update PyObject_Del() documentation (#122597)

Replace PyMem_Del() with PyMem_Free().

15 months agogh-122188: Remove _imp.pyc_magic_number (GH-122503)
Serhiy Storchaka [Fri, 2 Aug 2024 10:12:19 +0000 (13:12 +0300)] 
gh-122188: Remove _imp.pyc_magic_number (GH-122503)

_imp.pyc_magic_number_token should be enough.

15 months agogh-122544: Change OS image in readthedocs.yml to ubuntu-24.04 (#122568)
Damien [Fri, 2 Aug 2024 06:09:27 +0000 (14:09 +0800)] 
gh-122544: Change OS image in readthedocs.yml to ubuntu-24.04 (#122568)

15 months agogh-120083: Add IDLE Hovertip foreground color needed for recent macOS (#120605)
John Riggles [Fri, 2 Aug 2024 03:02:43 +0000 (23:02 -0400)] 
gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (#120605)

On recent versions of macOS (sometime between Catalina and Sonoma 14.5), the default Hovertip foreground color changed from black to white, thereby matching the background. This might be a matter of matching the white foreground of the dark-mode text. The unreadable result is shown here (#120083 (comment)).

The foreground and background colors were made parameters so we can pass different colors for future additional hovertips in IDLE.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
15 months agoFixes typo in idlelib/idle_test/example_stub.pyi (#122520)
Jonathon Vandezande [Fri, 2 Aug 2024 01:31:37 +0000 (21:31 -0400)] 
Fixes typo in idlelib/idle_test/example_stub.pyi (#122520)

---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
15 months agogh-122562: Remove ste_free and ste_child_free from symtable (#122563)
Jelle Zijlstra [Thu, 1 Aug 2024 23:28:25 +0000 (16:28 -0700)] 
gh-122562: Remove ste_free and ste_child_free from symtable (#122563)

15 months agoGH-118095: Add tier two support for BINARY_SUBSCR_GETITEM (GH-120793)
Mark Shannon [Thu, 1 Aug 2024 23:19:05 +0000 (00:19 +0100)] 
GH-118095: Add tier two support for BINARY_SUBSCR_GETITEM (GH-120793)

15 months agoReplace PyObject_Del with PyObject_Free (#122453)
Victor Stinner [Thu, 1 Aug 2024 12:12:33 +0000 (14:12 +0200)] 
Replace PyObject_Del with PyObject_Free (#122453)

PyObject_Del() is just a alias to PyObject_Free() kept for backward
compatibility. Use directly PyObject_Free() instead.

15 months agogh-122555: Remove removed functions from `Doc/data/refcounts.dat` (#122556)
Bénédikt Tran [Thu, 1 Aug 2024 10:26:09 +0000 (12:26 +0200)] 
gh-122555: Remove removed functions from `Doc/data/refcounts.dat` (#122556)

15 months agogh-122384: Mark strings from Download page for translation (#122385)
Rafael Fontenelle [Thu, 1 Aug 2024 09:25:16 +0000 (06:25 -0300)] 
gh-122384: Mark strings from Download page for translation (#122385)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
15 months agoGH-122155: Track local variables between pops and pushes in cases generator (GH-122286)
Mark Shannon [Thu, 1 Aug 2024 08:27:26 +0000 (09:27 +0100)] 
GH-122155: Track local variables between pops and pushes in cases generator (GH-122286)

15 months agoFix typos in docs, error messages and comments (#122502)
jianghuyiyuan [Thu, 1 Aug 2024 00:26:09 +0000 (09:26 +0900)] 
Fix typos in docs, error messages and comments (#122502)

Signed-off-by: jianghuyiyuan <shuangcui@live.com>
15 months agogh-116622: Don't expose `FICLONE` ioctl on Android (#122522)
Malcolm Smith [Thu, 1 Aug 2024 00:23:10 +0000 (01:23 +0100)] 
gh-116622: Don't expose `FICLONE` ioctl on Android (#122522)

Don't expose `FICLONE` ioctl on Android

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
15 months agogh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms which don't support...
Malcolm Smith [Wed, 31 Jul 2024 18:35:10 +0000 (19:35 +0100)] 
gh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms which don't support pwd.getpwall (GH-122521)

15 months agogh-87320: In the code module, handle exceptions raised in sys.excepthook (GH-122456) 122501/head
CF Bolz-Tereick [Wed, 31 Jul 2024 10:33:29 +0000 (12:33 +0200)] 
gh-87320: In the code module, handle exceptions raised in sys.excepthook (GH-122456)

Before, the exception caused by calling non-default sys.excepthook
in code.InteractiveInterpreter bubbled up to the caller, ending the REPL.

15 months agoMove change detection to separate workflow in CI (#122336)
Sviatoslav Sydorenko (Святослав Сидоренко) [Wed, 31 Jul 2024 08:32:16 +0000 (10:32 +0200)] 
Move change detection to separate workflow in CI (#122336)

15 months agogh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload....
Russell Keith-Magee [Wed, 31 Jul 2024 08:24:15 +0000 (16:24 +0800)] 
gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload. (#122493)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
15 months agoDocs: bump Sphinx to 8.0 and update constraints (#122496)
Hugo van Kemenade [Wed, 31 Jul 2024 07:02:08 +0000 (10:02 +0300)] 
Docs: bump Sphinx to 8.0 and update constraints (#122496)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months agogh-121381 Remove subprocess._USE_VFORK escape hatch (#121383)
Cody Maloney [Wed, 31 Jul 2024 01:39:54 +0000 (18:39 -0700)] 
gh-121381 Remove subprocess._USE_VFORK escape hatch (#121383)

This flag was added as an escape hatch in gh-91401 and backported to
Python 3.10. The flag broke at some point between its addition and now.
As there is currently no publicly known environments that require this,
remove it rather than work on fixing it.

This leaves the flag in the subprocess module to not break code which
may have used / checked the flag itself.

discussion: https://discuss.python.org/t/subprocess-use-vfork-escape-hatch-broken-fix-or-remove/56915/2

15 months agogh-116622: Fix testPyObjectPrintOSError on Android (#122487)
Malcolm Smith [Wed, 31 Jul 2024 00:21:43 +0000 (01:21 +0100)] 
gh-116622: Fix testPyObjectPrintOSError on Android (#122487)

Adds extra handling for way BSD/Android return errors from calls to fwrite.

15 months agoGH-122482: Make About IDLE direct discussion to DPO (#122483)
Terry Jan Reedy [Tue, 30 Jul 2024 22:29:52 +0000 (18:29 -0400)] 
GH-122482: Make About IDLE direct discussion to DPO (#122483)

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.

15 months agogh-121650: Encode newlines in headers, and verify headers are sound (GH-122233)
Petr Viktorin [Tue, 30 Jul 2024 22:19:48 +0000 (00:19 +0200)] 
gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233)

## 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.

## Verify that email headers are well-formed

This should fail for custom fold() implementations that aren't careful
about newlines.

Co-authored-by: Bas Bloemsaat <bas@bloemsaat.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
15 months ago gh-120906: Support arbitrary hashable keys in FrameLocalsProxy (GH-122309)
Petr Viktorin [Tue, 30 Jul 2024 22:11:00 +0000 (00:11 +0200)] 
 gh-120906: Support arbitrary hashable keys in FrameLocalsProxy  (GH-122309)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
15 months agogh-112301: Add argument aliases and tee compiler output for check warnings (GH-122465)
Nate Ohlson [Tue, 30 Jul 2024 19:49:15 +0000 (14:49 -0500)] 
gh-112301: Add argument aliases and tee compiler output for check warnings (GH-122465)

Also remove superfluous shebang from the warning check script

15 months agoRemove outdated note about instance methods from datamodel.rst (#122471)
Thomas Grainger [Tue, 30 Jul 2024 19:42:25 +0000 (20:42 +0100)] 
Remove outdated note about instance methods from datamodel.rst (#122471)

15 months agogh-122188: Move magic number to its own file (#122243)
Michael Droettboom [Tue, 30 Jul 2024 19:31:05 +0000 (15:31 -0400)] 
gh-122188: Move magic number to its own file (#122243)

* gh-122188: Move magic number to its own file

* Add versionadded directive

* Do work in C

* Integrate launcher.c

* Make _pyc_magic_number private

* Remove metadata

* Move sys.implementation -> _imp

* Modernize comment

* Move _RAW_MAGIC_NUMBER to the C side as well

* _pyc_magic_number -> pyc_magic_number

* Remove unused import

* Update docs

* Apply suggestions from code review

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* Fix typo in tests

---------

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
15 months agogh-117657: Avoid race in `PAUSE_ADAPTIVE_COUNTER` in free-threaded build (#122190)
Sam Gross [Tue, 30 Jul 2024 17:53:47 +0000 (13:53 -0400)] 
gh-117657: Avoid race in `PAUSE_ADAPTIVE_COUNTER` in free-threaded build (#122190)

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.

15 months agogh-116402: Avoid readline in test_builtin TTY input tests (GH-122447)
Łukasz Langa [Tue, 30 Jul 2024 16:57:19 +0000 (18:57 +0200)] 
gh-116402: Avoid readline in test_builtin TTY input tests (GH-122447)

15 months agogh-121946: Temporarily switch to llvm-17 in TSan CI again (GH-122466)
Sam Gross [Tue, 30 Jul 2024 15:30:52 +0000 (11:30 -0400)] 
gh-121946: Temporarily switch to llvm-17 in TSan CI again (GH-122466)

The Ubuntu package for llvm-18 is broken

15 months agogh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217)
Dino Viehland [Tue, 30 Jul 2024 12:03:52 +0000 (05:03 -0700)] 
gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217)

15 months agogh-121474: Add threading.Barrier parties arg sanity check. (GH-121480)
Clinton [Tue, 30 Jul 2024 08:53:07 +0000 (04:53 -0400)] 
gh-121474: Add threading.Barrier parties arg sanity check. (GH-121480)

15 months agogh-122400: Handle ValueError in filecmp (GH-122401)
Bénédikt Tran [Tue, 30 Jul 2024 08:50:30 +0000 (10:50 +0200)] 
gh-122400: Handle ValueError in filecmp (GH-122401)

15 months agogh-105733: Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it. (GH-122281)
Petr Viktorin [Tue, 30 Jul 2024 07:37:58 +0000 (09:37 +0200)] 
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

15 months agoGH-121970: Extract ``audit_events`` into a new extension (#122325)
Adam Turner [Tue, 30 Jul 2024 03:49:00 +0000 (04:49 +0100)] 
GH-121970: Extract ``audit_events`` into a new extension (#122325)

15 months agogh-122420: Fix accounting for immortal interned strings in refleak.py (GH-122421)
Sam Gross [Mon, 29 Jul 2024 22:15:03 +0000 (18:15 -0400)] 
gh-122420: Fix accounting for immortal interned strings in refleak.py (GH-122421)

The `_PyUnicode_Intern*` functions already adjust the total refcount, so
we don't want to readjust it in refleak.py.

15 months agoGH-118093: Improve handling of short and mid-loop traces (GH-122252)
Brandt Bucher [Mon, 29 Jul 2024 21:49:17 +0000 (14:49 -0700)] 
GH-118093: Improve handling of short and mid-loop traces (GH-122252)

15 months agogh-122133: Authenticate socket connection for `socket.socketpair()` fallback (GH...
Seth Michael Larson [Mon, 29 Jul 2024 21:44:35 +0000 (16:44 -0500)] 
gh-122133: Authenticate socket connection for `socket.socketpair()` fallback (GH-122134)

* 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).

Co-authored-by: Gregory P. Smith <greg@krypto.org>
15 months agoGH-122085: Use include files for C API deprecations (#109843)
Adam Turner [Mon, 29 Jul 2024 21:20:40 +0000 (22:20 +0100)] 
GH-122085: Use include files for C API deprecations (#109843)

15 months agogh-121996: Fix --disable-safety and --enable-slower-safety options (gh-122414)
Donghee Na [Mon, 29 Jul 2024 19:20:36 +0000 (04:20 +0900)] 
gh-121996: Fix --disable-safety and --enable-slower-safety options  (gh-122414)

15 months agoGH-116090: Fire RAISE events from _FOR_ITER_TIER_TWO (GH-122413)
Brandt Bucher [Mon, 29 Jul 2024 19:17:47 +0000 (12:17 -0700)] 
GH-116090: Fire RAISE events from _FOR_ITER_TIER_TWO (GH-122413)

15 months agogh-122311: Fix a refleak in pickle (GH-122411)
Serhiy Storchaka [Mon, 29 Jul 2024 18:52:48 +0000 (21:52 +0300)] 
gh-122311: Fix a refleak in pickle (GH-122411)

15 months agogh-117482: Fix the Slot Wrapper Inheritance Tests (gh-122248)
Eric Snow [Mon, 29 Jul 2024 16:23:23 +0000 (10:23 -0600)] 
gh-117482: Fix the Slot Wrapper Inheritance Tests (gh-122248)

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.

15 months agogh-122234: Add DECREFs to error paths (#122406)
Petr Viktorin [Mon, 29 Jul 2024 16:10:25 +0000 (18:10 +0200)] 
gh-122234: Add DECREFs to error paths (#122406)

Co-Authored-By: Kirill Podoprigora <kirill.bast9@mail.ru>
15 months agogh-122292: Split up ``Lib/test/test_ast.py`` into a couple of files (#122293)
Kirill Podoprigora [Mon, 29 Jul 2024 10:59:42 +0000 (13:59 +0300)] 
gh-122292: Split up ``Lib/test/test_ast.py`` into a couple of files (#122293)

15 months agogh-122311: Add more tests for error messages in pickle (GH-122373)
Serhiy Storchaka [Mon, 29 Jul 2024 10:40:16 +0000 (13:40 +0300)] 
gh-122311: Add more tests for error messages in pickle (GH-122373)

15 months agogh-122311: Fix some error messages in pickle (GH-122386)
Serhiy Storchaka [Mon, 29 Jul 2024 08:49:13 +0000 (11:49 +0300)] 
gh-122311: Fix some error messages in pickle (GH-122386)

15 months agogh-122234: fix accuracy issues for sum() (#122236)
Sergey B Kirpichev [Mon, 29 Jul 2024 03:56:40 +0000 (06:56 +0300)] 
gh-122234: fix accuracy issues for sum() (#122236)

* Use compensated summation for complex sums with floating-point items.
  This amends #121176.

* sum() specializations for floats and complexes now use
  PyLong_AsDouble() instead of PyLong_AsLongAndOverflow() and
  compensated summation as well.

15 months agogh-122311: Add more tests for pickle (GH-122376)
Serhiy Storchaka [Sun, 28 Jul 2024 08:33:17 +0000 (11:33 +0300)] 
gh-122311: Add more tests for pickle (GH-122376)

15 months agogh-120593: Make _PyLong_CompactValue() parameter const again (#122367)
Victor Stinner [Sun, 28 Jul 2024 07:59:07 +0000 (09:59 +0200)] 
gh-120593: Make _PyLong_CompactValue() parameter const again (#122367)

Change _PyLong_IsCompact() and _PyLong_CompactValue() parameter type
from 'PyObject*' to 'const PyObject*'. Avoid the Py_TYPE() macro
which does not support const parameter.

15 months agogh-122085: Create dedicated page for deprecations (#122352)
Hugo van Kemenade [Sun, 28 Jul 2024 07:53:21 +0000 (10:53 +0300)] 
gh-122085: Create dedicated page for deprecations (#122352)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months agogh-119180: Add myself as CODEOWNER for annotationlib (#122366)
Jelle Zijlstra [Sun, 28 Jul 2024 07:50:14 +0000 (00:50 -0700)] 
gh-119180: Add myself as CODEOWNER for annotationlib (#122366)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
15 months agogh-122361: Use proper `PyUnicodeWriter_*` API in `constevaluator_call` (#122362)
sobolevn [Sat, 27 Jul 2024 18:33:38 +0000 (21:33 +0300)] 
gh-122361: Use proper `PyUnicodeWriter_*` API in `constevaluator_call` (#122362)

15 months agogh-119180: Add evaluate functions for type params and type aliases (#122212)
Jelle Zijlstra [Sat, 27 Jul 2024 17:24:10 +0000 (10:24 -0700)] 
gh-119180: Add evaluate functions for type params and type aliases (#122212)

15 months agoGH-121462: pathlib docs: improve table of corresponding os/os.path functions (#121465)
Barney Gale [Sat, 27 Jul 2024 17:03:18 +0000 (18:03 +0100)] 
GH-121462: pathlib docs: improve table of corresponding os/os.path functions (#121465)

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.

15 months agogh-119180: Use type descriptors to access annotations (PEP 749) (#122074)
Jelle Zijlstra [Sat, 27 Jul 2024 16:36:06 +0000 (09:36 -0700)] 
gh-119180: Use type descriptors to access annotations (PEP 749) (#122074)

15 months agogh-122085: Use include files for `whatsnew/3.14.rst` deprecations (#122242)
Hugo van Kemenade [Sat, 27 Jul 2024 11:17:54 +0000 (14:17 +0300)] 
gh-122085: Use include files for `whatsnew/3.14.rst` deprecations (#122242)

15 months agogh-122044: Don't error during gitignore filtering with no files (#122045)
Seth Michael Larson [Sat, 27 Jul 2024 11:10:05 +0000 (06:10 -0500)] 
gh-122044: Don't error during gitignore filtering with no files (#122045)

15 months agogh-122170: Handle ValueError raised by os.stat() in linecache (GH-122176)
Bénédikt Tran [Sat, 27 Jul 2024 10:10:42 +0000 (12:10 +0200)] 
gh-122170: Handle ValueError raised by os.stat() in linecache (GH-122176)

15 months agogh-112301: Compiler warning management tooling (#121730)
Nate Ohlson [Sat, 27 Jul 2024 09:57:44 +0000 (04:57 -0500)] 
gh-112301: Compiler warning management tooling (#121730)

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>
15 months agogh-122291: Intern latin-1 one-byte strings at startup (GH-122303)
Petr Viktorin [Sat, 27 Jul 2024 08:27:06 +0000 (10:27 +0200)] 
gh-122291: Intern latin-1 one-byte strings at startup (GH-122303)

15 months agogh-122332: Fix missing `NULL` check in `asyncio.Task.get_coro` (#122338)
Peter Bierma [Sat, 27 Jul 2024 06:27:48 +0000 (02:27 -0400)] 
gh-122332: Fix missing `NULL` check in `asyncio.Task.get_coro` (#122338)

15 months agogh-121832: Revert test skip introduced by #122150. (#122340)
Russell Keith-Magee [Sat, 27 Jul 2024 02:24:30 +0000 (12:24 +1000)] 
gh-121832: Revert test skip introduced by #122150. (#122340)

Revert test skip introduced by #122150.

15 months agogh-120831: Correct default minimum iOS version. (#122339)
Russell Keith-Magee [Sat, 27 Jul 2024 01:53:44 +0000 (11:53 +1000)] 
gh-120831: Correct default minimum iOS version. (#122339)

Correct default minimum iOS version.

15 months agoFix underline for 'pty' in What's New in Python 3.14 (#122337)
Adam Turner [Sat, 27 Jul 2024 01:00:56 +0000 (02:00 +0100)] 
Fix underline for 'pty' in What's New in Python 3.14 (#122337)

15 months agoDocument ``mimetypes.MimeTypes.add_type()`` (#122301)
Subrahmanya Gaonkar [Fri, 26 Jul 2024 22:03:08 +0000 (03:33 +0530)] 
Document ``mimetypes.MimeTypes.add_type()`` (#122301)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months agoRemove reference to docs mailing list for bug reports (#122323)
Carol Willing [Fri, 26 Jul 2024 20:56:39 +0000 (13:56 -0700)] 
Remove reference to docs mailing list for bug reports (#122323)

15 months agogh-122245: Add test case of generic type with __debug__ (#122322)
Irit Katriel [Fri, 26 Jul 2024 18:40:36 +0000 (19:40 +0100)] 
gh-122245: Add test case of generic type with __debug__ (#122322)

15 months agoManually override bytecode definition in optimizer, to avoid build error (GH-122316)
Mark Shannon [Fri, 26 Jul 2024 17:38:52 +0000 (18:38 +0100)] 
Manually override bytecode definition in optimizer, to avoid build error (GH-122316)

15 months agogh-122201: Lock mutex when setting handling_thread to NULL (#122204)
Sam Gross [Fri, 26 Jul 2024 17:06:07 +0000 (13:06 -0400)] 
gh-122201: Lock mutex when setting handling_thread to NULL (#122204)

In the free-threaded build, we need to lock pending->mutex when clearing
the handling_thread in order not to race with a concurrent
make_pending_calls in the same interpreter.

15 months agoGH-122294: Burn in the addresses of side exits (GH-122295)
Brandt Bucher [Fri, 26 Jul 2024 16:40:15 +0000 (09:40 -0700)] 
GH-122294: Burn in the addresses of side exits (GH-122295)

15 months agogh-122300: Preserve AST nodes for format specifiers with single elements (#122308)
Pablo Galindo Salgado [Fri, 26 Jul 2024 16:29:41 +0000 (17:29 +0100)] 
gh-122300: Preserve AST nodes for format specifiers with single elements (#122308)

15 months agogh-122311: Fix typo in the pickle error formatting code (GH-122312)
Serhiy Storchaka [Fri, 26 Jul 2024 14:48:44 +0000 (17:48 +0300)] 
gh-122311: Fix typo in the pickle error formatting code (GH-122312)

15 months agogh-121999: Change default tarfile filter to 'data' (GH-122002)
WilliamRoyNelson [Fri, 26 Jul 2024 14:34:13 +0000 (07:34 -0700)] 
gh-121999: Change default tarfile filter to 'data' (GH-122002)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Scott Odle <scott@sjodle.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
15 months agogh-122245: move checks for writes and shadowing of __debug__ to symtable (#122246)
Irit Katriel [Fri, 26 Jul 2024 13:39:56 +0000 (14:39 +0100)] 
gh-122245: move checks for writes and shadowing of __debug__ to symtable (#122246)

15 months agoGH-116090: Fix test and clarify behavior for exception events when exhausting a gener...
Mark Shannon [Fri, 26 Jul 2024 13:37:35 +0000 (14:37 +0100)] 
GH-116090: Fix test and clarify behavior for exception events when exhausting a generator. (GH-120697)

15 months agoGH-122029: Break INSTRUMENTED_CALL into micro-ops, so that its behavior is consistent...
Mark Shannon [Fri, 26 Jul 2024 13:35:57 +0000 (14:35 +0100)] 
GH-122029: Break INSTRUMENTED_CALL into micro-ops, so that its behavior is consistent with CALL (GH-122177)

15 months agoGH-121131: Clean up and fix some instrumented instructions. (GH-121132)
Mark Shannon [Fri, 26 Jul 2024 11:24:12 +0000 (12:24 +0100)] 
GH-121131: Clean up and fix some instrumented instructions. (GH-121132)

* Add support for 'prev_instr' to code generator and refactor some INSTRUMENTED instructions

15 months agoGH-118093: Add tier two support for BINARY_OP_INPLACE_ADD_UNICODE (GH-122253)
Brandt Bucher [Thu, 25 Jul 2024 21:45:07 +0000 (14:45 -0700)] 
GH-118093: Add tier two support for BINARY_OP_INPLACE_ADD_UNICODE (GH-122253)

15 months agoMove macOS matrix to the calling workflow (#121809)
Sviatoslav Sydorenko (Святослав Сидоренко) [Thu, 25 Jul 2024 20:27:26 +0000 (22:27 +0200)] 
Move macOS matrix to the calling workflow (#121809)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
15 months agoGH-118093: Add tier two support for LOAD_ATTR_PROPERTY (GH-122283)
Brandt Bucher [Thu, 25 Jul 2024 17:45:28 +0000 (10:45 -0700)] 
GH-118093: Add tier two support for LOAD_ATTR_PROPERTY (GH-122283)

15 months agoGH-122034: Add StackRef variants of type checks to reduce the number of PyStackRef_As...
Mark Shannon [Thu, 25 Jul 2024 17:32:43 +0000 (18:32 +0100)] 
GH-122034: Add StackRef variants of type checks to reduce the number of PyStackRef_AsPyObjectBorrow calls (GH-122037)

15 months agogh-121489: Export private _PyBytes_Join() again (#122267)
Marc Mueller [Thu, 25 Jul 2024 15:31:30 +0000 (17:31 +0200)] 
gh-121489: Export private _PyBytes_Join() again (#122267)

15 months agoGH-122160: Remove BUILD_CONST_KEY_MAP opcode. (GH-122164)
Mark Shannon [Thu, 25 Jul 2024 15:24:29 +0000 (16:24 +0100)] 
GH-122160: Remove BUILD_CONST_KEY_MAP opcode. (GH-122164)

15 months agogh-116322: Fix typo in the #ifdef check (#122268)
Serhiy Storchaka [Thu, 25 Jul 2024 14:31:57 +0000 (17:31 +0300)] 
gh-116322: Fix typo in the #ifdef check (#122268)

15 months agogh-121275: Fix test_logging and test_smtplib with Python build withoud IPv6 support...
AN Long [Thu, 25 Jul 2024 12:03:39 +0000 (20:03 +0800)] 
gh-121275: Fix test_logging and test_smtplib with Python build withoud IPv6 support (#121276)

Fix test_logging and test_smtplib with Python build withoud IPv6 support