Ł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
Vlastimil Zíma
94e6644584
gh-65453: Docs - clarify AttributeError behaviour on PropertyMock (GH-121666)
...
Fixed at EuroPython 24 sprints.
2024-07-18 15:57:21 +02:00
Matthieu Caneill
cecaceea31
gh-120930: Remove extra blank occuring in wrapped encoded words in email headers (GH-121747)
2024-07-18 14:48:05 +02:00
Gregor
1056f2bc20
gh-121657: Additional `yield from` error test using lambda (GH-121722)
2024-07-18 14:29:03 +02:00
Mark Shannon
3eacfc1a4d
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.
2024-07-18 12:49:24 +01:00
Mark Shannon
169324c27a
GH-120024: Use pointer for stack pointer (GH-121923)
2024-07-18 12:47:21 +01:00
Bernhard M. Wiedemann
24cf867bed
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.
2024-07-18 13:05:39 +03:00
Jelle Zijlstra
63ddd28cf3
gh-121921: Make bogus_code_obj.py crash the interpreter ( #121922 )
2024-07-18 04:02:08 -04:00
Victor Stinner
c5a6b9afd8
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.
2024-07-18 08:19:32 +02:00
Sam Gross
81fd625b5c
gh-121621: Move asyncio_running_loop to private struct ( #121939 )
...
This avoids changing the ABI and keeps the field in the private struct.
2024-07-17 15:21:24 -07:00
Savannah Ostrowski
f113c1a2a9
Add note about PYTHON_JIT environment variable to JIT README (GH-121635)
2024-07-17 15:17:47 -07:00
Victor Stinner
51da3dfbf3
gh-121266: Change dict check_lookup() return type to int ( #121581 )
2024-07-17 21:52:19 +02:00
Victor Stinner
b826e459ca
gh-121528: Fix _PyObject_Init() assertion for stable ABI ( #121725 )
...
Add _Py_IsImmortalLoose() function for assertions.
2024-07-17 21:49:37 +02:00