Sebastian Rittau
375c9f6dfb
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>
2024-07-23 10:59:28 +01:00
Xie Yanbo
2a5d1eb707
Fix typos in comments and exception message ( #122147 )
2024-07-23 14:34:14 +05:30
Sam Gross
47847aa8ef
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.
2024-07-23 14:17:14 +05:30
Donghee Na
a9bb3c7b3b
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
2024-07-23 09:22:04 +09:00
Jelle Zijlstra
2762c6cc5e
gh-121637: Syntax error for optimized-away incorrect await ( #121656 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-07-22 14:12:43 -07:00
Serhiy Storchaka
69f2dc5c06
Refactor test_capi.test_long (GH-122113)
...
Share common code for tests for PyLong_As*() functions.
Co-authored-by: Victor Stinner <vstinner@python.org>
2024-07-22 21:43:00 +03:00
Sam Gross
ad935a9016
Revert "gh-121946: Temporarily switch to llvm-17 in TSan CI ( #121975 )" ( #122032 )
...
This reverts commit 12c1afa9d1
.
The LLVM 18 Ubuntu package is working now.
2024-07-22 13:33:40 -04:00
Irit Katriel
d5a12b4440
gh-121404: move calculation of module start location from compiler_body up to compiler_codegen ( #122127 )
2024-07-22 17:48:30 +01:00
Sam Gross
5716cc3529
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.
2024-07-22 12:08:27 -04:00
HarryLHW
2408a8a22b
gh-121795: Improve performance of set membership testing from set arguments ( #121796 )
2024-07-22 10:05:23 -05:00
Bradley Reynolds
97668192f7
Remove now unused function from itertools tests ( #122100 )
2024-07-22 10:03:20 -05:00
Bénédikt Tran
c09d4c4a26
gh-119698: deprecate ``symtable.Class.get_methods`` ( #121902 )
2024-07-22 07:04:17 -07:00
Łukasz Langa
dc93d1125f
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.
2024-07-22 13:04:08 +02:00
Łukasz Langa
cad11a2bdc
gh-111051: [tests] Wait a second to support filesystems with low-resolution mtime (GH-121959)
2024-07-22 13:03:07 +02:00
Ville Skyttä
bc264eac3a
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>
2024-07-22 09:14:25 +08:00
Russell Keith-Magee
728432c804
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.
2024-07-22 07:36:08 +08:00
Kirill Podoprigora
5901d92739
gh-122096: Remove accidentally left debugging prints ( #122097 )
2024-07-21 20:48:39 +01:00
Sviatoslav Sydorenko (Святослав Сидоренко)
a3f7db905c
Merge Ubuntu test matrices in CI ( #121813 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-07-21 13:09:23 -06:00
Jakub Kulík
e88bd96d0d
gh-118124: fix assert related C++ checks on Solaris/Illumos ( #121974 )
...
Fix check for static_assert() for C++ on some platforms.
2024-07-21 18:50:14 +02:00
Andrey Mishchenko
0dcbc83853
Delete stale note about mp.Lock.acquire/SIGINT ( #120929 )
2024-07-21 06:17:57 +00:00
Raymond Hettinger
ebc18abbf3
gh-121977: Add tips for handling unhashable data ( #122075 )
2024-07-21 05:53:26 +00:00
Barney Gale
c4c7097e64
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()`.
2024-07-20 23:32:52 +01:00
Barney Gale
094375b9b7
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>
2024-07-20 20:14:13 +00:00
Adam Turner
8db5f48007
Docs: Fix duplicate object description warnings ( #122068 )
2024-07-20 19:46:41 +00:00
Sam Gross
a09e215abf
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.
2024-07-20 16:04:14 +02:00
Adam Turner
b7ad711fcb
GH-121970: Modernise the patchlevel extension ( #121995 )
2024-07-20 13:44:43 +00:00
Rafael Fontenelle
3de092b82f
Docs: Fix a typo in What's New in Python 3.13 ( #122051 )
2024-07-20 04:46:57 +01:00
Sam Gross
97248204a1
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).
2024-07-19 15:26:29 -04:00
mpage
e059aa6b01
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.
2024-07-19 13:22:02 -04:00
Pablo Galindo Salgado
2009e25e26
gh-122026: Fix identification of mismatched parentheses inside f-strings ( #122028 )
2024-07-19 19:08:08 +02:00
Karolina Surma
186b4d8ea2
gh-122014: Account for abi_thread in test_sysconfig.test_user_similar (gh-122017)
2024-07-19 16:48:20 +00:00
Rodrigo Oliveira
d66b06107b
gh-118830: Bump pickle.DEFAULT_PROTOCOL to 5 (GH-119340)
2024-07-19 16:47:10 +02:00
Hugo van Kemenade
a1df1b4439
Docs: move deprecations into include files ( #121241 )
2024-07-19 07:57:14 -06:00
Petr Viktorin
709db44255
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.
2024-07-19 15:52:00 +02:00
Adam Turner
22c9d9c1fc
GH-121970: Rewrite the C-API annotations extension ( #121985 )
...
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-07-19 12:21:56 +00:00
Adam Turner
40855f3ab8
GH-121970: Use Ruff to check and format the docs tools ( #122018 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@gmail.com>
2024-07-19 11:48:53 +00:00
Adam Turner
898e90c3be
GH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` ( #121971 )
2024-07-19 11:39:51 +01:00
Adam Turner
adf0b94d1c
GH-121970: Improve the glossary preview in HTML search ( #121991 )
2024-07-19 10:16:59 +01:00
Serhiy Storchaka
1a0c7b9ba4
gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907)
2024-07-19 08:06:02 +00:00
Adam Turner
420d943128
Docs: Upgrade Sphinx to 7.4 ( #121987 )
2024-07-19 08:58:19 +01:00
Adam Turner
ac39151a09
GH-121970: Use ``SphinxDirective`` instead of ``Directive`` ( #121972 )
2024-07-19 08:33:51 +01:00
Kirill Podoprigora
98e5bdef0e
Docs: Fix typo in description of ``INTRINSIC_ASYNC_GEN_WRAP`` ( #122004 )
2024-07-19 08:30:01 +01:00
Serhiy Storchaka
c8d2630995
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.
2024-07-19 08:06:53 +03:00
Tian Gao
eaf094c09b
gh-120289: Add external timer in traverse of _lsprof.Profiler ( #121998 )
2024-07-18 20:46:24 -07:00
Brandt Bucher
7b36b67b1e
GH-118093: Add tier two support to several instructions (GH-121884)
2024-07-18 14:24:58 -07:00
Adam Turner
7dd52b63ce
GH-117928: Bump the minimum Sphinx version to 6.2.1 ( #121986 )
2024-07-18 21:05:38 +00:00
Tian Gao
1ab1778283
gh-120289: Disallow disable() and clear() in external timer to prevent use-after-free ( #120297 )
2024-07-18 12:47:22 -07:00
Adam Turner
7431c3799e
GH-121970: Combine custom Pygments lexers into a package ( #121976 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-07-18 18:38:29 +00:00
Sam Gross
12c1afa9d1
gh-121946: Temporarily switch to llvm-17 in TSan CI ( #121975 )
...
The Ubuntu package for llvm-18 is broken
2024-07-18 13:30:52 -04:00
Nate Ohlson
bdab67e1c7
gh-112301: Add fortify source level 3 to default compiler options (gh-121520)
2024-07-19 01:06:51 +09:00