]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
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

15 months agogh-121913: Use str(exc) instead of exc.strerror in `asyncio.base_events` (#122269)
AN Long [Thu, 25 Jul 2024 11:56:04 +0000 (19:56 +0800)] 
gh-121913: Use str(exc) instead of exc.strerror in `asyncio.base_events` (#122269)

15 months agogh-122270: Fix typos in the Py_DEBUG macro name (GH-122271)
Serhiy Storchaka [Thu, 25 Jul 2024 11:04:22 +0000 (14:04 +0300)] 
gh-122270: Fix typos in the Py_DEBUG macro name (GH-122271)

15 months agogh-82951: Fix serializing by name in pickle protocols < 4 (GH-122149)
Serhiy Storchaka [Thu, 25 Jul 2024 08:45:19 +0000 (11:45 +0300)] 
gh-82951: Fix serializing by name in pickle protocols < 4 (GH-122149)

Serializing objects with complex __qualname__ (such as unbound methods and
nested classes) by name no longer involves serializing parent objects by value
in pickle protocols < 4.

15 months agogh-112301: Make fortify source option check -Werror (gh-122141)
Nate Ohlson [Thu, 25 Jul 2024 08:35:23 +0000 (04:35 -0400)] 
gh-112301: Make fortify source option check -Werror (gh-122141)

15 months agogh-122187: Avoid TSan reported race in `run_udp_echo_server` (#122189)
Sam Gross [Thu, 25 Jul 2024 08:16:53 +0000 (04:16 -0400)] 
gh-122187: Avoid TSan reported race in `run_udp_echo_server` (#122189)

TSan doesn't fully recognize the synchronization via I/O, so ensure that
socket name is retrieved earlier and use a different socket for sending
the "STOP" message.

15 months agogh-122087: Add tests for ismethoddescriptor() and isroutine() with partial objects...
Serhiy Storchaka [Thu, 25 Jul 2024 07:12:26 +0000 (10:12 +0300)] 
gh-122087: Add tests for ismethoddescriptor() and isroutine() with partial objects (GH-122219)

15 months agogh-113785: csv: fields starting with escapechar are not quoted (GH-122110)
Mikołaj Kuranowski [Thu, 25 Jul 2024 07:04:47 +0000 (09:04 +0200)] 
gh-113785: csv: fields starting with escapechar are not quoted (GH-122110)

15 months agogh-122191: Fix test_warnings failure if run with -Werror (GH-122222)
Serhiy Storchaka [Thu, 25 Jul 2024 06:57:22 +0000 (09:57 +0300)] 
gh-122191: Fix test_warnings failure if run with -Werror (GH-122222)

__spec__.loader is now required in the module globals (see gh-86298).

15 months agogh-122208: Don't delivery PyDict_EVENT_ADDED until it can't fail (#122207)
Dino Viehland [Wed, 24 Jul 2024 17:58:28 +0000 (10:58 -0700)] 
gh-122208: Don't delivery PyDict_EVENT_ADDED until it can't fail (#122207)

Don't delivery PyDict_EVENT_ADDED until it can't fail

15 months agogh-121404: extract compiler_lookup_arg out of compiler_make_closure (#122181)
Irit Katriel [Wed, 24 Jul 2024 16:22:18 +0000 (17:22 +0100)] 
gh-121404: extract compiler_lookup_arg out of compiler_make_closure (#122181)

15 months agoGH-118093: Remove invalidated executors from side exits (GH-121885)
Brandt Bucher [Wed, 24 Jul 2024 16:16:30 +0000 (09:16 -0700)] 
GH-118093: Remove invalidated executors from side exits (GH-121885)

15 months agogh-122229: Add missing `Py_DECREF` in `func_get_annotation_dict` (#122230)
sobolevn [Wed, 24 Jul 2024 12:47:52 +0000 (15:47 +0300)] 
gh-122229: Add missing `Py_DECREF` in `func_get_annotation_dict` (#122230)

15 months agoIntegrate `build_msi` into main CI workflow (#121778)
Sviatoslav Sydorenko (Святослав Сидоренко) [Wed, 24 Jul 2024 09:46:39 +0000 (11:46 +0200)] 
Integrate `build_msi` into main CI workflow (#121778)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months agoGH-121832: Assert that the version number of static builtin types is not changed...
Mark Shannon [Wed, 24 Jul 2024 09:22:51 +0000 (10:22 +0100)] 
GH-121832: Assert that the version number of static builtin types is not changed by PyType_Modified. (GH-122182)

Update datetime module and test_type_cache.py to not call PyType_Modified.

15 months agogh-122085: Use include files for `whatsnew/3.12.rst` deprecations (#122093)
Hugo van Kemenade [Wed, 24 Jul 2024 08:29:35 +0000 (11:29 +0300)] 
gh-122085: Use include files for `whatsnew/3.12.rst` deprecations (#122093)

15 months agoFix typo in news document (GH-122209)
Xie Yanbo [Wed, 24 Jul 2024 06:49:58 +0000 (14:49 +0800)] 
Fix typo in news document (GH-122209)

15 months agoGH-120754: Add more tests around seek + readall (#122103)
Cody Maloney [Wed, 24 Jul 2024 06:14:35 +0000 (23:14 -0700)] 
GH-120754: Add more tests around seek + readall (#122103)

In the process of speeding up readall, A number of related tests
(ex. large file tests in test_zipfile) found problems with the
change I was making. This adds I/O tests to specifically test these
cases to help ensure they don't regress and hopefully make debugging
easier.

This is part of the improvements from
https://github.com/python/cpython/pull/121593#issuecomment-2222261986

15 months agogh-122029: Log call events in sys.setprofile when it's a method with c function ...
Tian Gao [Tue, 23 Jul 2024 22:25:26 +0000 (15:25 -0700)] 
gh-122029: Log call events in sys.setprofile when it's a method with c function (GH-122072)

Log call events in sys.setprofile when it is a method with a C function.

15 months agogh-122199: Skip test_slot_wrappers When Checking For Refleaks (gh-122200)
Eric Snow [Tue, 23 Jul 2024 21:19:17 +0000 (15:19 -0600)] 
gh-122199: Skip test_slot_wrappers When Checking For Refleaks (gh-122200)

15 months agogh-119180: Add `annotationlib` module to support PEP 649 (#119891)
Jelle Zijlstra [Tue, 23 Jul 2024 21:16:50 +0000 (14:16 -0700)] 
gh-119180: Add `annotationlib` module to support PEP 649 (#119891)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
15 months agogh-117657: Skip tests that use threads after fork (#122194)
Sam Gross [Tue, 23 Jul 2024 20:30:49 +0000 (16:30 -0400)] 
gh-117657: Skip tests that use threads after fork (#122194)

These tests fail when run under thread sanitizer due to the use of fork
and threads.

15 months agogh-117482: Expand Tests for Slot Wrappers of Inherited Slots of Static Builtin Types...
Eric Snow [Tue, 23 Jul 2024 19:57:26 +0000 (13:57 -0600)] 
gh-117482: Expand Tests for Slot Wrappers of Inherited Slots of Static Builtin Types (gh-122192)

15 months agogh-122129: Improve support of method descriptors and wrappers in the help title ...
Serhiy Storchaka [Tue, 23 Jul 2024 17:45:21 +0000 (20:45 +0300)] 
gh-122129: Improve support of method descriptors and wrappers in the help title (GH-122157)

15 months agogh-120974: Make _asyncio._leave_task atomic in the free-threaded build (#122139)
Sam Gross [Tue, 23 Jul 2024 17:06:03 +0000 (13:06 -0400)] 
gh-120974: Make _asyncio._leave_task atomic in the free-threaded build (#122139)

* gh-120974: Make _asyncio._leave_task atomic in the free-threaded build

Update `_PyDict_DelItemIf` to allow for an argument to be passed to the
predicate.

15 months agogh-122163: Add notes for JSON serialization errors (GH-122165)
Serhiy Storchaka [Tue, 23 Jul 2024 17:02:54 +0000 (20:02 +0300)] 
gh-122163: Add notes for JSON serialization errors (GH-122165)

This allows to identify the source of the error.

15 months agogh-120974: Use common freelist code in asyncio (#122132)
Sam Gross [Tue, 23 Jul 2024 16:24:24 +0000 (12:24 -0400)] 
gh-120974: Use common freelist code in asyncio (#122132)

This refactors asyncio to use the common freelist helper functions and
macros. As a side effect, the freelist for _asyncio.Future is now
re-enabled in the free-threaded build.

15 months agogh-121973: Fix flaky test_pyrepl tests (GH-122140)
Sam Gross [Tue, 23 Jul 2024 13:17:13 +0000 (09:17 -0400)] 
gh-121973: Fix flaky test_pyrepl tests (GH-122140)

This fixes the flakiness in:
* test_inspect_keeps_globals_from_inspected_file
* test_inspect_keeps_globals_from_inspected_module

The output already includes newlines. Adding newlines for every entry in
the output list introduces non-determinism because it added '\n' in
places where stdout is flushed or some buffer becomes full.

The regex also needed to be updated because pyrepl includes control
characters -- the visible output on each line doesn't immediately follow
a newline character.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
15 months agoGH-122155: Fix cases generator to correctly compute 'peek' offset for error handling...
Mark Shannon [Tue, 23 Jul 2024 13:12:06 +0000 (14:12 +0100)] 
GH-122155: Fix cases generator to correctly compute 'peek' offset for error handling (GH-122158)

15 months agoDocs: Use cross-reference to `os.uname` in `sysconfig.get_platform` (#122083)
Ville Skyttä [Tue, 23 Jul 2024 13:08:39 +0000 (16:08 +0300)] 
Docs: Use cross-reference to `os.uname` in `sysconfig.get_platform` (#122083)

15 months agoGH-121970: Remove ``escape4chm`` (#122065)
Adam Turner [Tue, 23 Jul 2024 12:30:06 +0000 (13:30 +0100)] 
GH-121970: Remove ``escape4chm`` (#122065)

15 months agogh-121832: Skip subinterpreter static type check on iOS to restore test suite. (GH...
Russell Keith-Magee [Tue, 23 Jul 2024 10:17:50 +0000 (20:17 +1000)] 
gh-121832: Skip subinterpreter static type check on iOS to restore test suite. (GH-122150)

15 months agogh-122088: Copy the coroutine status of the underlying callable in `@warnings.depreca...
Sebastian Rittau [Tue, 23 Jul 2024 09:59:28 +0000 (11:59 +0200)] 
gh-122088: Copy the coroutine status of the underlying callable in `@warnings.deprecated` (#122086)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
15 months agoFix typos in comments and exception message (#122147)
Xie Yanbo [Tue, 23 Jul 2024 09:04:14 +0000 (17:04 +0800)] 
Fix typos in comments and exception message (#122147)

15 months agogh-120974: Make _asyncio._enter_task atomic in the free-threaded build (#122138)
Sam Gross [Tue, 23 Jul 2024 08:47:14 +0000 (04:47 -0400)] 
gh-120974: Make _asyncio._enter_task atomic in the free-threaded build (#122138)

Use `PyDict_SetDefaultRef` to set the current task in a single operation
under the dictionary's lock.

15 months ago gh-121996: Introduce --disable-safety and --enable-slower-safety options (#122054)
Donghee Na [Tue, 23 Jul 2024 00:22:04 +0000 (09:22 +0900)] 
 gh-121996: Introduce --disable-safety and --enable-slower-safety options (#122054)

* gh-121996: Introduce --disable-safty and --enable-slower-safty

* Update GA

* fix

* Address code review

* Update CI

15 months agogh-121637: Syntax error for optimized-away incorrect await (#121656)
Jelle Zijlstra [Mon, 22 Jul 2024 21:12:43 +0000 (14:12 -0700)] 
gh-121637: Syntax error for optimized-away incorrect await (#121656)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
15 months agoRefactor test_capi.test_long (GH-122113)
Serhiy Storchaka [Mon, 22 Jul 2024 18:43:00 +0000 (21:43 +0300)] 
Refactor test_capi.test_long (GH-122113)

Share common code for tests for PyLong_As*() functions.

Co-authored-by: Victor Stinner <vstinner@python.org>
15 months agoRevert "gh-121946: Temporarily switch to llvm-17 in TSan CI (#121975)" (#122032)
Sam Gross [Mon, 22 Jul 2024 17:33:40 +0000 (13:33 -0400)] 
Revert "gh-121946: Temporarily switch to llvm-17 in TSan CI (#121975)" (#122032)

This reverts commit 12c1afa9d153fbdf78c970054c08c755f504c5e9.

The LLVM 18 Ubuntu package is working now.

15 months agogh-121404: move calculation of module start location from compiler_body up to compile...
Irit Katriel [Mon, 22 Jul 2024 16:48:30 +0000 (17:48 +0100)] 
gh-121404: move calculation of module start location from compiler_body up to compiler_codegen (#122127)

15 months agogh-100240: Use a consistent implementation for freelists (#121934)
Sam Gross [Mon, 22 Jul 2024 16:08:27 +0000 (12:08 -0400)] 
gh-100240: Use a consistent implementation for freelists (#121934)

This combines and updates our freelist handling to use a consistent
implementation. Objects in the freelist are linked together using the
first word of memory block.

If configured with freelists disabled, these operations are essentially
no-ops.

15 months agogh-121795: Improve performance of set membership testing from set arguments (#121796)
HarryLHW [Mon, 22 Jul 2024 15:05:23 +0000 (23:05 +0800)] 
gh-121795: Improve performance of set membership testing from set arguments (#121796)

15 months agoRemove now unused function from itertools tests (#122100)
Bradley Reynolds [Mon, 22 Jul 2024 15:03:20 +0000 (10:03 -0500)] 
Remove now unused function from itertools tests (#122100)

15 months agogh-119698: deprecate ``symtable.Class.get_methods`` (#121902)
Bénédikt Tran [Mon, 22 Jul 2024 14:04:17 +0000 (16:04 +0200)] 
gh-119698: deprecate ``symtable.Class.get_methods`` (#121902)

15 months agogh-121957: Emit audit events for `python -i` and `python -m asyncio` (GH-121958)
Łukasz Langa [Mon, 22 Jul 2024 11:04:08 +0000 (13:04 +0200)] 
gh-121957: Emit audit events for `python -i` and `python -m asyncio` (GH-121958)

Relatedly, emit the `cpython.run_startup` event from the Python version of
`PYTHONSTARTUP` handling.

15 months agogh-111051: [tests] Wait a second to support filesystems with low-resolution mtime...
Łukasz Langa [Mon, 22 Jul 2024 11:03:07 +0000 (13:03 +0200)] 
gh-111051: [tests] Wait a second to support filesystems with low-resolution mtime (GH-121959)

15 months agoDocs: spelling and grammar fixes (#122084)
Ville Skyttä [Mon, 22 Jul 2024 01:14:25 +0000 (04:14 +0300)] 
Docs: spelling and grammar fixes (#122084)

Corrected some grammar and spelling issues in documentation.

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
15 months agogh-120522: Apply App Store compliance patch during installation (#121947)
Russell Keith-Magee [Sun, 21 Jul 2024 23:36:08 +0000 (09:36 +1000)] 
gh-120522: Apply App Store compliance patch during installation (#121947)

Adds a --with-app-store-compliance configuration option that patches out code known to be an issue with App Store review processes. This option is applied automatically on iOS, and optionally on macOS.

15 months agogh-122096: Remove accidentally left debugging prints (#122097)
Kirill Podoprigora [Sun, 21 Jul 2024 19:48:39 +0000 (22:48 +0300)] 
gh-122096: Remove accidentally left debugging prints (#122097)

15 months agoMerge Ubuntu test matrices in CI (#121813)
Sviatoslav Sydorenko (Святослав Сидоренко) [Sun, 21 Jul 2024 19:09:23 +0000 (21:09 +0200)] 
Merge Ubuntu test matrices in CI (#121813)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
15 months agogh-118124: fix assert related C++ checks on Solaris/Illumos (#121974)
Jakub Kulík [Sun, 21 Jul 2024 16:50:14 +0000 (18:50 +0200)] 
gh-118124: fix assert related C++ checks on Solaris/Illumos (#121974)

Fix check for static_assert() for C++ on some platforms.

15 months agoDelete stale note about mp.Lock.acquire/SIGINT (#120929)
Andrey Mishchenko [Sun, 21 Jul 2024 06:17:57 +0000 (23:17 -0700)] 
Delete stale note about mp.Lock.acquire/SIGINT (#120929)

15 months agogh-121977: Add tips for handling unhashable data (#122075)
Raymond Hettinger [Sun, 21 Jul 2024 05:53:26 +0000 (00:53 -0500)] 
gh-121977: Add tips for handling unhashable data (#122075)

15 months agoGH-73991: Support preserving metadata in `pathlib.Path.copytree()` (#121438)
Barney Gale [Sat, 20 Jul 2024 22:32:52 +0000 (23:32 +0100)] 
GH-73991: Support preserving metadata in `pathlib.Path.copytree()` (#121438)

Add *preserve_metadata* keyword-only argument to `pathlib.Path.copytree()`,
defaulting to false. When set to true, we copy timestamps, permissions,
extended attributes and flags where available, like `shutil.copystat()`.

15 months agoGH-73991: Add `pathlib.Path.rmtree()` (#119060)
Barney Gale [Sat, 20 Jul 2024 20:14:13 +0000 (21:14 +0100)] 
GH-73991: Add `pathlib.Path.rmtree()` (#119060)

Add a `Path.rmtree()` method that removes an entire directory tree, like
`shutil.rmtree()`. The signature of the optional *on_error* argument
matches the `Path.walk()` argument of the same name, but differs from the
*onexc* and *onerror* arguments to `shutil.rmtree()`. Consistency within
pathlib is probably more important.

In the private pathlib ABCs, we add an implementation based on `walk()`.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
15 months agoDocs: Fix duplicate object description warnings (#122068)
Adam Turner [Sat, 20 Jul 2024 19:46:41 +0000 (20:46 +0100)] 
Docs: Fix duplicate object description warnings (#122068)

15 months agogh-121988: Fix test hang when pyrepl is not available (#121990)
Sam Gross [Sat, 20 Jul 2024 14:04:14 +0000 (10:04 -0400)] 
gh-121988: Fix test hang when pyrepl is not available (#121990)

Also explicitly fail the test if we timeout while waiting for output so
that this failure mode is caught earlier.

15 months agoGH-121970: Modernise the patchlevel extension (#121995)
Adam Turner [Sat, 20 Jul 2024 13:44:43 +0000 (14:44 +0100)] 
GH-121970: Modernise the patchlevel extension (#121995)

15 months agoDocs: Fix a typo in What's New in Python 3.13 (#122051)
Rafael Fontenelle [Sat, 20 Jul 2024 03:46:57 +0000 (00:46 -0300)] 
Docs: Fix a typo in What's New in Python 3.13 (#122051)

15 months agogh-121621: Disable asyncio freelist in free-threaded build (#122046)
Sam Gross [Fri, 19 Jul 2024 19:26:29 +0000 (15:26 -0400)] 
gh-121621: Disable asyncio freelist in free-threaded build (#122046)

The futureobj freelist isn't thread-safe. We intend to re-enable the
freelist in a thread-safe way for 3.14 (but not 3.13).

15 months agogh-120973: Fix thread-safety issues with `threading.local` (#121655)
mpage [Fri, 19 Jul 2024 17:22:02 +0000 (10:22 -0700)] 
gh-120973: Fix thread-safety issues with `threading.local` (#121655)

This is a small refactoring to the current design that allows us to
avoid manually iterating over threads.

This should also fix gh-118490.

15 months agogh-122026: Fix identification of mismatched parentheses inside f-strings (#122028)
Pablo Galindo Salgado [Fri, 19 Jul 2024 17:08:08 +0000 (19:08 +0200)] 
gh-122026: Fix identification of mismatched parentheses inside f-strings (#122028)

15 months agogh-122014: Account for abi_thread in test_sysconfig.test_user_similar (gh-122017)
Karolina Surma [Fri, 19 Jul 2024 16:48:20 +0000 (18:48 +0200)] 
gh-122014: Account for abi_thread in test_sysconfig.test_user_similar (gh-122017)

15 months agogh-118830: Bump pickle.DEFAULT_PROTOCOL to 5 (GH-119340)
Rodrigo Oliveira [Fri, 19 Jul 2024 14:47:10 +0000 (14:47 +0000)] 
gh-118830: Bump pickle.DEFAULT_PROTOCOL to 5 (GH-119340)

15 months agoDocs: move deprecations into include files (#121241)
Hugo van Kemenade [Fri, 19 Jul 2024 13:57:14 +0000 (16:57 +0300)] 
Docs: move deprecations into include files (#121241)

15 months agogh-121160: Note that readline libraries using different history formats. (GH-121327)
Petr Viktorin [Fri, 19 Jul 2024 13:52:00 +0000 (15:52 +0200)] 
gh-121160: Note that readline libraries using different history formats. (GH-121327)

This is not something we can do too much about, without help from the
underlying libraries.

15 months agoGH-121970: Rewrite the C-API annotations extension (#121985)
Adam Turner [Fri, 19 Jul 2024 12:21:56 +0000 (13:21 +0100)] 
GH-121970: Rewrite the C-API annotations extension (#121985)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
15 months agoGH-121970: Use Ruff to check and format the docs tools (#122018)
Adam Turner [Fri, 19 Jul 2024 11:48:53 +0000 (12:48 +0100)] 
GH-121970: Use Ruff to check and format the docs tools (#122018)

Co-authored-by: Alex Waygood <Alex.Waygood@gmail.com>
15 months agoGH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` (#121971)
Adam Turner [Fri, 19 Jul 2024 10:39:51 +0000 (11:39 +0100)] 
GH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` (#121971)

15 months agoGH-121970: Improve the glossary preview in HTML search (#121991)
Adam Turner [Fri, 19 Jul 2024 09:16:59 +0000 (10:16 +0100)] 
GH-121970: Improve the glossary preview in HTML search (#121991)

15 months agogh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907)
Serhiy Storchaka [Fri, 19 Jul 2024 08:06:02 +0000 (11:06 +0300)] 
gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907)

15 months agoDocs: Upgrade Sphinx to 7.4 (#121987)
Adam Turner [Fri, 19 Jul 2024 07:58:19 +0000 (08:58 +0100)] 
Docs: Upgrade Sphinx to 7.4 (#121987)

15 months agoGH-121970: Use ``SphinxDirective`` instead of ``Directive`` (#121972)
Adam Turner [Fri, 19 Jul 2024 07:33:51 +0000 (08:33 +0100)] 
GH-121970: Use ``SphinxDirective`` instead of ``Directive`` (#121972)

15 months agoDocs: Fix typo in description of ``INTRINSIC_ASYNC_GEN_WRAP`` (#122004)
Kirill Podoprigora [Fri, 19 Jul 2024 07:30:01 +0000 (10:30 +0300)] 
Docs: Fix typo in description of ``INTRINSIC_ASYNC_GEN_WRAP`` (#122004)

15 months agogh-82017: Support as_integer_ratio() in the Fraction constructor (GH-120271)
Serhiy Storchaka [Fri, 19 Jul 2024 05:06:53 +0000 (08:06 +0300)] 
gh-82017: Support as_integer_ratio() in the Fraction constructor (GH-120271)

Any objects that have the as_integer_ratio() method (e.g. numpy.float128)
can now be converted to a fraction.

15 months agogh-120289: Add external timer in traverse of _lsprof.Profiler (#121998)
Tian Gao [Fri, 19 Jul 2024 03:46:24 +0000 (20:46 -0700)] 
gh-120289: Add external timer in traverse of _lsprof.Profiler (#121998)

15 months agoGH-118093: Add tier two support to several instructions (GH-121884)
Brandt Bucher [Thu, 18 Jul 2024 21:24:58 +0000 (14:24 -0700)] 
GH-118093: Add tier two support to several instructions (GH-121884)

15 months agoGH-117928: Bump the minimum Sphinx version to 6.2.1 (#121986)
Adam Turner [Thu, 18 Jul 2024 21:05:38 +0000 (22:05 +0100)] 
GH-117928: Bump the minimum Sphinx version to 6.2.1 (#121986)

15 months agogh-120289: Disallow disable() and clear() in external timer to prevent use-after...
Tian Gao [Thu, 18 Jul 2024 19:47:22 +0000 (12:47 -0700)] 
gh-120289: Disallow disable() and clear() in external timer to prevent use-after-free (#120297)

15 months agoGH-121970: Combine custom Pygments lexers into a package (#121976)
Adam Turner [Thu, 18 Jul 2024 18:38:29 +0000 (19:38 +0100)] 
GH-121970: Combine custom Pygments lexers into a package (#121976)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
15 months agogh-121946: Temporarily switch to llvm-17 in TSan CI (#121975)
Sam Gross [Thu, 18 Jul 2024 17:30:52 +0000 (13:30 -0400)] 
gh-121946: Temporarily switch to llvm-17 in TSan CI (#121975)

The Ubuntu package for llvm-18 is broken

15 months agogh-112301: Add fortify source level 3 to default compiler options (gh-121520)
Nate Ohlson [Thu, 18 Jul 2024 16:06:51 +0000 (13:06 -0300)] 
gh-112301: Add fortify source level 3 to default compiler options (gh-121520)

15 months agogh-65453: Docs - clarify AttributeError behaviour on PropertyMock (GH-121666)
Vlastimil Zíma [Thu, 18 Jul 2024 13:57:21 +0000 (15:57 +0200)] 
gh-65453: Docs - clarify AttributeError behaviour on PropertyMock (GH-121666)

Fixed at EuroPython 24 sprints.

15 months agogh-120930: Remove extra blank occuring in wrapped encoded words in email headers...
Matthieu Caneill [Thu, 18 Jul 2024 12:48:05 +0000 (14:48 +0200)] 
gh-120930: Remove extra blank occuring in wrapped encoded words in email headers (GH-121747)

15 months agogh-121657: Additional `yield from` error test using lambda (GH-121722)
Gregor [Thu, 18 Jul 2024 12:29:03 +0000 (14:29 +0200)] 
gh-121657: Additional `yield from` error test using lambda (GH-121722)

15 months agoGH-121784: Generate an error during code gen if a variable is marked `unused`, but...
Mark Shannon [Thu, 18 Jul 2024 11:49:24 +0000 (12:49 +0100)] 
GH-121784: Generate an error during code gen if a variable is marked `unused`, but is used and thus cached in a prior uop. (#121788)

* Reject uop definitions that declare values as 'unused' that are already cached by prior uops

* Track which variables are defined and only load from memory when needed

* Support explicit `flush` in macro definitions.

* Make sure stack is flushed in where needed.

15 months agoGH-120024: Use pointer for stack pointer (GH-121923)
Mark Shannon [Thu, 18 Jul 2024 11:47:21 +0000 (12:47 +0100)] 
GH-120024: Use pointer for stack pointer (GH-121923)

15 months agogh-121874: Define audit-event open parameters consistently (GH-121883)
Bernhard M. Wiedemann [Thu, 18 Jul 2024 10:05:39 +0000 (12:05 +0200)] 
gh-121874: Define audit-event open parameters consistently (GH-121883)

Use same names for parameters to avoid triggering a race-condition in Sphinx
that causes non-deterministic output.

15 months agogh-121921: Make bogus_code_obj.py crash the interpreter (#121922)
Jelle Zijlstra [Thu, 18 Jul 2024 08:02:08 +0000 (01:02 -0700)] 
gh-121921: Make bogus_code_obj.py crash the interpreter (#121922)

15 months agogh-121266: Remove Py_ALWAYS_INLINE in dictobject.c (#121493)
Victor Stinner [Thu, 18 Jul 2024 06:19:32 +0000 (08:19 +0200)] 
gh-121266: Remove Py_ALWAYS_INLINE in dictobject.c (#121493)

compare_unicode_generic(), compare_unicode_unicode() and
compare_generic() are callbacks used by do_lookup(). When enabling
assertions, it's not possible to inline these functions.