]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Sergey B Kirpichev [Tue, 17 Sep 2024 08:22:40 +0000 (11:22 +0300)]
gh-123836: Check zero signs in math_testcases.txt (#123854)
Just like cmath_testcases.txt. These tests require IEEE 754 anyway.
Correct zero sign for sqrt tests to match math.h convention.
Savannah Ostrowski [Tue, 17 Sep 2024 06:30:17 +0000 (23:30 -0700)]
GH-123945: Update regex for parsing negative numbers that contain underscores (#123970)
---------
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Rafael Fontenelle [Tue, 17 Sep 2024 02:53:38 +0000 (23:53 -0300)]
GH-103484: Fix permanently redirects reported by linkcheck (GH-124144)
Fix redirects reported by linkcheck, update docs conf.py checks.
Furkan Onder [Mon, 16 Sep 2024 23:00:36 +0000 (02:00 +0300)]
GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (#124110)
Skip test_strcoll_with_diacritic() and test_strxfrm_with_diacritic()
of test_locale on NetBSD due to lack of UTF-8 LC_COLLATE
support.
sobolevn [Mon, 16 Sep 2024 20:28:09 +0000 (23:28 +0300)]
gh-121023: Improve `_xxtestfuzz/README.rst` (#121024)
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
Peter Bierma [Mon, 16 Sep 2024 20:03:16 +0000 (16:03 -0400)]
gh-124043: Disallow mixing `--with-trace-refs` and `--disable-gil` (#124078)
Tracing references is not currently thread-safe in the free-threaded build.
Nate Ohlson [Mon, 16 Sep 2024 17:22:30 +0000 (12:22 -0500)]
gh-124064: Make warning emitting compiler options opt-in (#124070)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Adam Turner [Mon, 16 Sep 2024 17:03:46 +0000 (18:03 +0100)]
GH-109975: Copyedit 3.13 What's New: New Deprecations (#123845)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Irit Katriel [Mon, 16 Sep 2024 14:05:00 +0000 (15:05 +0100)]
gh-123969: refactor _PyErr_RaiseSyntaxError and _PyErr_EmitSyntaxWarning out of compiler (#123972)
Irit Katriel [Mon, 16 Sep 2024 13:58:18 +0000 (14:58 +0100)]
gh-124058: remove _PyCompile_IsNestedScope, roll it into _PyCompile_IsInteractive (#124061)
Irit Katriel [Mon, 16 Sep 2024 12:13:18 +0000 (13:13 +0100)]
gh-97588: remove unused functions in _ctypes/cfield.c (GH-124010)
Russell Keith-Magee [Mon, 16 Sep 2024 04:23:05 +0000 (12:23 +0800)]
gh-123748: Add conditional compilation rules for HACL SIMD256 and SIMD128 on macOS (#123989)
Add conditional compilation rules to allow HACL SIMD256 and SIMD128 to be ignored on the ARM64 pass of universal2 macOS builds.
Irit Katriel [Sun, 15 Sep 2024 19:21:22 +0000 (20:21 +0100)]
gh-121404: update CODEOWNERS (#124109)
Sam Gross [Sat, 14 Sep 2024 18:29:55 +0000 (14:29 -0400)]
gh-121459: Add missing return to _PyDict_LoadGlobalStackRef (#124085)
We need to return immediately if there's an error during dictionary
lookup.
Also avoid the conditional-if operator. MSVC versions through v19.27 miscompile
compound literals with side effects within a conditional operator. This caused
crashes in the Windows10 buildbot.
sobolevn [Sat, 14 Sep 2024 13:14:45 +0000 (16:14 +0300)]
Remove unused `_allowed_types` from `typing.py` (#124090)
sobolevn [Sat, 14 Sep 2024 10:20:44 +0000 (13:20 +0300)]
Remove unused variable in `MagicMixin._mock_set_magics` (#124092)
Sam Gross [Sat, 14 Sep 2024 02:02:27 +0000 (22:02 -0400)]
gh-124068: Fix reference leak with generators in the free-threaded build (#124069)
If the generator is already cleared, then most fields in the
generator's frame are not valid other than f_executable. The invalid
fields may contain dangling pointers and should not be used.
Chris Barker [Fri, 13 Sep 2024 23:36:40 +0000 (16:36 -0700)]
gh-121607: Edited source file import recipe to make it more clear (#121519)
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Raymond Hettinger [Fri, 13 Sep 2024 22:02:37 +0000 (17:02 -0500)]
Minor edits to the descriptor guide (GH-123928)
Furkan Onder [Fri, 13 Sep 2024 20:34:25 +0000 (23:34 +0300)]
gh-123974: Fix time.get_clock_info() on NetBSD (#123975)
Fix OSError for thread_time clock on NetBSD by setting default resolution.
Hugo van Kemenade [Fri, 13 Sep 2024 19:47:12 +0000 (22:47 +0300)]
Revert "gh-112301: Enable warning emitting options and ignore warnings in CI (#123020)" (#124065)
Oleg Iarygin [Fri, 13 Sep 2024 18:35:08 +0000 (22:35 +0400)]
gh-100554: Fix formatting of type.rst modifications (#124066)
Loïc Estève [Fri, 13 Sep 2024 18:13:30 +0000 (20:13 +0200)]
gh-122957: Fix test flakiness in asyncio test in free-thread build (#124039)
Furkan Onder [Fri, 13 Sep 2024 16:27:54 +0000 (19:27 +0300)]
gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031)
Ken Jin [Fri, 13 Sep 2024 16:23:51 +0000 (00:23 +0800)]
gh-121459: Deferred LOAD_GLOBAL (GH-123128)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Sam Gross <655866+colesbury@users.noreply.github.com>
Wenzel Jakob [Fri, 13 Sep 2024 15:40:25 +0000 (00:40 +0900)]
gh-100554: Add ``Py_tp_vectorcall`` slot to set ``PyTypeObject.tp_vectorcall`` using the ``PyType_FromSpec`` function family. (#123332)
utkonos [Fri, 13 Sep 2024 15:26:16 +0000 (11:26 -0400)]
Normalize cdecl formatting as found elsewhere on ctypes.rst (#121379)
Rafael Fontenelle [Fri, 13 Sep 2024 15:17:30 +0000 (12:17 -0300)]
Update to 3.13 the output of exceptions raised (#123888)
Irit Katriel [Fri, 13 Sep 2024 15:16:54 +0000 (16:16 +0100)]
gh-124022: add missing #include (#124052)
Donghee Na [Fri, 13 Sep 2024 15:15:44 +0000 (00:15 +0900)]
gh-119802: Update memory management docs for free-threaded build (gh-124006)
* gh-119802: Update memory management docs for free-threaded build
* nit
* nit
* Address code review
* nit
* Update Doc/c-api/memory.rst
Co-authored-by: Sam Gross <colesbury@gmail.com>
---------
Co-authored-by: Sam Gross <colesbury@gmail.com>
Benjamin Peterson [Fri, 13 Sep 2024 14:47:04 +0000 (07:47 -0700)]
closes gh-124016: update Unicode to 16.0.0 (#124017)
Irit Katriel [Fri, 13 Sep 2024 14:06:06 +0000 (15:06 +0100)]
gh-124022: Fix bug where class docstring is removed in interactive mode (#124023)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Nate Ohlson [Fri, 13 Sep 2024 13:40:04 +0000 (08:40 -0500)]
gh-112301: Enable warning emitting options and ignore warnings in CI (#123020)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Sergey B Kirpichev [Fri, 13 Sep 2024 12:49:13 +0000 (15:49 +0300)]
gh-123811: Test that round(Decimal) can return signed zero (GH-124007)
Bénédikt Tran [Fri, 13 Sep 2024 12:43:06 +0000 (14:43 +0200)]
gh-123961: Add `curses` prefix to global variables in `_cursesmodule.c` (#124047)
Use the `const char*` type instead of a `const *` for the encoding name.
Bénédikt Tran [Fri, 13 Sep 2024 11:26:19 +0000 (13:26 +0200)]
gh-124044: protect macros expansions in `_cursesmodules.c` using `do { ... } while (0)` (#124045)
Petr Viktorin [Fri, 13 Sep 2024 11:18:49 +0000 (13:18 +0200)]
gh-123909: PyType_From*: Disallow metaclasses with custom tp_new (GH-123947)
sobolevn [Fri, 13 Sep 2024 11:13:52 +0000 (14:13 +0300)]
gh-108303: Remove the non-test `Lib/test/reperf.py` (GH-114356)
Bénédikt Tran [Fri, 13 Sep 2024 10:33:13 +0000 (12:33 +0200)]
gh-123961: Remove global variable `ModDict` in `_cursesmodule.c` (#123962)
Savannah Ostrowski [Fri, 13 Sep 2024 06:14:52 +0000 (23:14 -0700)]
GH-101599: Update docs to remove redundant option in argparse tutorial (#124025)
Malcolm Smith [Fri, 13 Sep 2024 04:58:11 +0000 (05:58 +0100)]
gh-116622: Mock the passage of time in Android logcat rate limit tests (#124015)
Mock the passage of time in Android logcat rate limit tests
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Yngve Mardal Moe [Fri, 13 Sep 2024 04:36:17 +0000 (06:36 +0200)]
gh-123614: Add save function to turtle.py (#123617)
Malcolm Smith [Fri, 13 Sep 2024 04:23:54 +0000 (05:23 +0100)]
gh-116622: Android test script improvements (#124012)
* Set Android test script stdout to line-buffered
* Print warning logcat messages on stderr
* Add a -vv option to display high-volume messages which are rarely useful
* Documentation and comment improvements
Jason R. Coombs [Fri, 13 Sep 2024 02:29:08 +0000 (22:29 -0400)]
gh-123976: Refresh docs around custom providers. (#123977)
* gh-123976: Refresh docs around custom providers.
* Remove excess whitespace.
Miro Hrončok [Fri, 13 Sep 2024 01:07:23 +0000 (03:07 +0200)]
gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (#124028)
pyrepl: Support Del, PgUp, and PgDn on TERM=vt100
From Fedora's /etc/inputrc:
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
Fixes https://github.com/python/cpython/issues/124027
Irit Katriel [Thu, 12 Sep 2024 19:24:15 +0000 (20:24 +0100)]
gh-124019: do not call codegen_annotations_in_scope if there are no annotations (#124020)
Jason R. Coombs [Thu, 12 Sep 2024 19:08:06 +0000 (15:08 -0400)]
gh-123085: Fix issue in inferred caller when resources package has no source (#123102)
gh-123085: Fix issue in inferred caller when resources package has no source.
From importlib_resources 6.4.3 (python/importlib_resources#314).
Irit Katriel [Thu, 12 Sep 2024 18:58:32 +0000 (19:58 +0100)]
gh-124013: remove _PyCompile_IsTopLevelAwait (#124014)
Sam Gross [Thu, 12 Sep 2024 16:37:06 +0000 (12:37 -0400)]
gh-123923: Defer refcounting for `f_executable` in `_PyInterpreterFrame` (#123924)
Use a `_PyStackRef` and defer the reference to `f_executable` when
possible. This avoids some reference count contention in the common case
of executing the same code object from multiple threads concurrently in
the free-threaded build.
Mark Shannon [Thu, 12 Sep 2024 14:32:45 +0000 (15:32 +0100)]
GH-123996: Explicitly mark 'self_or_null' as an array of size 1 to ensure that it is kept in memory for calls (GH-124003)
Jason R. Coombs [Thu, 12 Sep 2024 14:14:46 +0000 (10:14 -0400)]
gh-123994: Generate utf-16 file using little endian and BOM. (#123995)
Anders Kaseorg [Thu, 12 Sep 2024 13:54:18 +0000 (06:54 -0700)]
gh-123968: Fix lower bound for `python -m random --float` (#123971)
Nice Zombies [Thu, 12 Sep 2024 12:03:32 +0000 (14:03 +0200)]
gh-118577: Clarify that inspect.BoundArguments prefers to put values in args (GH-119936)
Hugo van Kemenade [Thu, 12 Sep 2024 10:49:19 +0000 (13:49 +0300)]
Docs: Drop letter PDF (#123912)
Irit Katriel [Thu, 12 Sep 2024 10:32:57 +0000 (11:32 +0100)]
gh-111997: update what's new in 3.13 re C API for monitoring events (#123822)
sobolevn [Thu, 12 Sep 2024 07:29:06 +0000 (10:29 +0300)]
gh-123935: Fix typo in `_get_slots` in `dataclasses.py` (#123941)
Malcolm Smith [Thu, 12 Sep 2024 05:52:07 +0000 (06:52 +0100)]
gh-116622: Switch test_stress_delivery_simultaneous from SIGUSR1 to SIGUSR2 (#123981)
Use SIGUSR1 instead of SIGUSR2 to improve reliability of signal stress test on Android.
Jason R. Coombs [Thu, 12 Sep 2024 02:33:07 +0000 (22:33 -0400)]
gh-121735: Fix module-adjacent references in zip files (#123037)
* gh-116608: Apply style and compatibility changes from importlib_metadata.
* gh-121735: Ensure module-adjacent resources are loadable from a zipfile.
* gh-121735: Allow all modules to be processed by the ZipReader.
* Add blurb
* Remove update-zips script, unneeded.
* Remove unnecessary references to removed static fixtures.
* Remove zipdata fixtures, unused.
sobolevn [Wed, 11 Sep 2024 18:25:23 +0000 (21:25 +0300)]
Fix "The Matrix" movie release year in `typing.rst` (#123965)
Hugo van Kemenade [Wed, 11 Sep 2024 18:05:15 +0000 (21:05 +0300)]
Update Sphinx Lint and fix unnecessary parentheses in `:func:`s (#123960)
Irit Katriel [Wed, 11 Sep 2024 17:02:28 +0000 (18:02 +0100)]
gh-123958: apply docstring removal optimization in ast_opt instead of codegen (#123959)
Bénédikt Tran [Wed, 11 Sep 2024 15:49:33 +0000 (17:49 +0200)]
gh-123290: fix reference leaks in the error-branches of `_cursesmodule.c` (#123953)
Bénédikt Tran [Wed, 11 Sep 2024 15:43:24 +0000 (17:43 +0200)]
gh-108951: Document how to terminate an asyncio.TaskGroup (#123837)
We don't want to add another API, since the recipe is straightforward and rarely needed.
The advantage is that we could backport this to the earliest Python version that has taskgroups (3.11, alas in security mode already, so we'll just do 3.12 and 3.13).
Jelle Zijlstra [Wed, 11 Sep 2024 14:49:59 +0000 (07:49 -0700)]
gh-119180: Documentation for PEP 649 and 749 (#122235)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Irit Katriel [Wed, 11 Sep 2024 14:39:53 +0000 (15:39 +0100)]
gh-123942: add missing test for docstring-handling code in ast_opt.c (#123943)
sobolevn [Wed, 11 Sep 2024 13:37:35 +0000 (16:37 +0300)]
gh-123919: Fix null handling in `_freeze_module.c` (#123920)
Xie Yanbo [Wed, 11 Sep 2024 11:44:46 +0000 (19:44 +0800)]
Fix invisible character typo (#123933)
Remove accidental addition of zero-width character (U+FEFF) reported by @jaraco:
- https://github.com/python/cpython/commit/
c3f4a6b52418d9b9f091f864cb6340d0d5fc6966 #commitcomment-
146456562
Sergey B Kirpichev [Wed, 11 Sep 2024 09:21:05 +0000 (12:21 +0300)]
gh-123811: test that round() can return signed zero (#123829)
Serhiy Storchaka [Wed, 11 Sep 2024 09:05:46 +0000 (12:05 +0300)]
gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898)
Now a memoryview object can only be cleared if there are no buffers
that refer it.
adang1345 [Tue, 10 Sep 2024 19:52:49 +0000 (15:52 -0400)]
gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918)
Irit Katriel [Tue, 10 Sep 2024 16:16:00 +0000 (17:16 +0100)]
gh-123881: make compiler add the .generic_base base class without constructing AST nodes (#123883)
Tushar Sadhwani [Tue, 10 Sep 2024 15:07:30 +0000 (20:37 +0530)]
gh-122239: Add actual count in unbalanced unpacking error message when possible (#122244)
Bénédikt Tran [Tue, 10 Sep 2024 14:25:27 +0000 (16:25 +0200)]
gh-123165: update docs signature for `dis.disassemble` (#123808)
Petr Viktorin [Tue, 10 Sep 2024 14:16:32 +0000 (16:16 +0200)]
gh-123905: Update TOML description to include version number (GH-123906)
Update TOML description to include version number
There is some movement, currently blocked, that would update the TOML spec to 1.1.0; this would include breaking changes to what characters are allowed. Thus, it is worthwhile for the library page to be clear which version is implemented here.
Co-authored-by: Paul Hoffman <phoffman@proper.com>
Peter Bierma [Tue, 10 Sep 2024 13:05:28 +0000 (09:05 -0400)]
gh-123609: Clarify usage of standalone `PyBUF_FORMAT` (GH-123778)
Victor Stinner [Tue, 10 Sep 2024 09:54:17 +0000 (11:54 +0200)]
gh-123892: Add "_wmi" to sys.stdlib_module_names (#123893)
Jelle Zijlstra [Tue, 10 Sep 2024 07:26:42 +0000 (00:26 -0700)]
gh-123881: Add additional test coverage for PEP 695 edge cases (#123886)
Raymond Hettinger [Tue, 10 Sep 2024 01:57:49 +0000 (20:57 -0500)]
Small improvements to the itertools docs (GH-123885)
Anthony Sottile [Mon, 9 Sep 2024 20:40:18 +0000 (16:40 -0400)]
gh-66449: remove duplicate configparser section in 3.13 whatsnew (#123874)
Serhiy Storchaka [Mon, 9 Sep 2024 18:28:55 +0000 (21:28 +0300)]
gh-122213: Add notes for pickle serialization errors (GH-122214)
This allows to identify the source of the error.
Furkan Onder [Mon, 9 Sep 2024 17:22:28 +0000 (20:22 +0300)]
gh-123826: Fix unused function warnings in mimalloc on NetBSD (#123827)
Irit Katriel [Mon, 9 Sep 2024 17:21:51 +0000 (18:21 +0100)]
gh-121404: split compile.c into compile.c and codegen.c (#123651)
Jérôme Duval [Mon, 9 Sep 2024 14:59:13 +0000 (16:59 +0200)]
gh-84808: socket.connect_ex: Handle negative errno (GH-122304)
POSIX allows errno to be negative.
Even though all currently supported platforms have non-negative errno,
relying on a quirk like that would make Python less portable.
Eric Snow [Mon, 9 Sep 2024 14:04:58 +0000 (08:04 -0600)]
gh-117482: Simplify the Fix For Builtin Types Slot Wrappers (GH-122865)
In gh-121602, I applied a fix to a builtin types initialization bug.
That fix made sense in the context of some broader future changes,
but introduced a little bit of extra complexity. That fix has turned
out to be incomplete for some of the builtin types we haven't
been testing. I found that out while improving the tests.
A while back, @markshannon suggested a simpler fix that doesn't
have that problem, which I've already applied to 3.12 and 3.13.
I'm switching to that here. Given the potential long-term
benefits of the more complex (but still incomplete) approach,
I'll circle back to it in the future, particularly after I've improved
the tests so no corner cases slip through the cracks.
(This is effectively a "forward-port" of
716c677 from 3.13.)
sobolevn [Mon, 9 Sep 2024 13:58:49 +0000 (16:58 +0300)]
Mention `curl` in `contextvars` docs (#123838)
algonell [Mon, 9 Sep 2024 12:58:26 +0000 (15:58 +0300)]
Fix typos (#123775)
Furkan Onder [Mon, 9 Sep 2024 12:14:23 +0000 (15:14 +0300)]
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824)
Fix test_posix for unsupported posix_fallocate on NetBSD.
Serhiy Storchaka [Mon, 9 Sep 2024 12:04:51 +0000 (15:04 +0300)]
gh-122311: Improve and unify pickle errors (GH-122771)
* Raise PicklingError instead of UnicodeEncodeError, ValueError
and AttributeError in both implementations.
* Chain the original exception to the pickle-specific one as __context__.
* Include the error message of ImportError and some AttributeError in
the PicklingError error message.
* Unify error messages between Python and C implementations.
* Refer to documented __reduce__ and __newobj__ callables instead of
internal methods (e.g. save_reduce()) or pickle opcodes (e.g. NEWOBJ).
* Include more details in error messages (what expected, what got).
* Avoid including a potentially long repr of an arbitrary object in
error messages.
Bénédikt Tran [Mon, 9 Sep 2024 11:45:43 +0000 (13:45 +0200)]
gh-123834: Add `symtable` to the list of modules with a CLI (#123835)
Bénédikt Tran [Mon, 9 Sep 2024 09:24:24 +0000 (11:24 +0200)]
chore: decimal module macro cleanup (#123791)
* protect macros expansion via `do { ... } while (0)` constructions in `_decimal.c`
* Use public macro `Py_UNUSED`
This replaces the usages of the `UNUSED` macro which
was not consistent with the `Py_UNUSED` macro itself.
In addition, this amends the parameter names so that
they match their semantic meanings.
* Remove redundant `PyCFunction` casts
Adam Turner [Mon, 9 Sep 2024 02:39:23 +0000 (22:39 -0400)]
gh-123843: Remove broken links to the Zope DateTimeWiki (#123846)
Co-authored-by: Conrad Bhuiyan-Volkoff <hi@cbv.im>
Donghee Na [Sun, 8 Sep 2024 20:20:15 +0000 (05:20 +0900)]
gh-108219: Add credits to the free-threading entry in What's New (#123802)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
Sergey B Kirpichev [Sun, 8 Sep 2024 13:01:54 +0000 (16:01 +0300)]
gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071)
Wulian [Sun, 8 Sep 2024 04:17:59 +0000 (12:17 +0800)]
gh-123789: `secrets.randbits` returns only non-negative int (#123801)
Carol Willing [Sat, 7 Sep 2024 18:46:56 +0000 (11:46 -0700)]
Add willingc to CODEOWNERS for Lang Reference Doc (#123812)
Wei-Hsiang (Matt) Wang [Sat, 7 Sep 2024 18:09:02 +0000 (02:09 +0800)]
Remove excessive backticks in logging doc (#123813)
Seth Michael Larson [Sat, 7 Sep 2024 18:05:58 +0000 (13:05 -0500)]
gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793)
Make IPv4-mapped IPv6 address properties consistent with IPv4.
Łukasz Langa [Fri, 6 Sep 2024 19:28:29 +0000 (21:28 +0200)]
gh-120221: Support KeyboardInterrupt in asyncio REPL (#123795)
This switches the main pyrepl event loop to always be non-blocking so that it
can listen to incoming interruptions from other threads.
This also resolves invalid display of exceptions from other threads
(gh-123178).
This also fixes freezes with pasting and an active input hook.
Sam Gross [Fri, 6 Sep 2024 19:07:08 +0000 (15:07 -0400)]
gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (#123690)
Use a `PyMutex` to avoid the race in mutex initialization. Use relaxed
atomics to avoid the data race on reading `_PyOS_ReadlineTState` when
checking for re-entrant calls.
Nadeshiko Manju [Fri, 6 Sep 2024 19:00:28 +0000 (03:00 +0800)]
gh-117657: Fix file descriptor race in test_socket.py (#123697)