Sam Gross
64e221d7ad
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.
2024-07-23 16:30:49 -04:00
Eric Snow
33d32faa58
gh-117482: Expand Tests for Slot Wrappers of Inherited Slots of Static Builtin Types (gh-122192)
2024-07-23 19:57:26 +00:00
Serhiy Storchaka
4606eff0aa
gh-122129: Improve support of method descriptors and wrappers in the help title (GH-122157)
2024-07-23 20:45:21 +03:00
Sam Gross
a15feded71
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.
2024-07-23 17:06:03 +00:00
Serhiy Storchaka
e6b25e9a09
gh-122163: Add notes for JSON serialization errors (GH-122165)
...
This allows to identify the source of the error.
2024-07-23 20:02:54 +03:00
Sam Gross
c908d1f87d
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.
2024-07-23 21:54:24 +05:30
Sam Gross
2c1b1e7a07
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>
2024-07-23 15:17:13 +02:00
Mark Shannon
624bda7638
GH-122155: Fix cases generator to correctly compute 'peek' offset for error handling (GH-122158)
2024-07-23 14:12:06 +01:00
Ville Skyttä
498cb6dff1
Docs: Use cross-reference to `os.uname` in `sysconfig.get_platform` ( #122083 )
2024-07-23 14:08:39 +01:00
Adam Turner
53e9e7de63
GH-121970: Remove ``escape4chm`` ( #122065 )
2024-07-23 13:30:06 +01:00
Russell Keith-Magee
1bcc9eb862
gh-121832: Skip subinterpreter static type check on iOS to restore test suite. (GH-122150)
2024-07-23 11:17:50 +01:00
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