Commit Graph
134054 Commits
Author SHA1 Message Date
Eduardo Villalpando MelloGitHubblurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>Brett Cannon
ef1fce0a69 gh-157928: Have PyREPL detect OSC sequences (GH-157932)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Brett Cannon <[email protected]>
2026-10-29 14:23:07 -07:00
7515b64aa7 gh-139105: Correct the EOF key shown on Windows in sqlite3's .help (#139106)
Signed-off-by: Keming <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
2026-10-29 21:20:23 +00:00
Cody MaloneyandGitHub 386d9d071c gh-160858: Use the list freelist in list() (gh-160859) 2026-10-30 05:32:10 +09:00
Senthil KumaranandGitHub 2e1666f1f2 gh-53852 Proxy Auth failure to raise 407 instead of 401 (#160917)
Proxy Auth failure to raise 407 instead of 401

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/407
is the correct status code to raise for the Proxy Authentication.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401
is the generic code that can be raised for unauthorized response.
2026-10-29 19:58:50 +00:00
9b3e095a5f gh-60299: Fix ProxyDigestAuthHandler credential lookup to use proxy authority (#160528)
AbstractDigestAuthHandler.get_authorization() always looked up
credentials using the target request URL (req.full_url), even when
invoked via ProxyDigestAuthHandler, whose credentials are registered
against the proxy's host:port.

The lookup never matched, no Proxy-Authorization header was produced,
and proxy digest auth failed with an unhandled 407.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-10-29 11:30:00 -07:00
Neil SchemenauerandGitHub 03875414cb gh-159136: Keep eval-frame recorded function names alive (gh-160836)
Hold a strong reference to func_name in both recording hooks before
PyList_Append can detach while acquiring the recording list lock.
2026-10-29 10:16:59 -07:00
131a3a66c5 gh-160898: Reject null bytes in socket.getaddrinfo() host and port (#160899)
Co-authored-by: Stan Ulbrych <[email protected]>
2026-10-29 17:15:29 +00:00
Dmitry SpikhalskyandGitHub 756319503f gh-158159: Fix use-after-free in asyncio Task.get_name() (#158180) 2026-10-29 22:30:36 +05:30
Stan UlbrychandGitHub 8dbc313ff9 gh-160781: Only test BytesIO write overflow on the C implementation (#160903) 2026-10-29 16:58:18 +00:00
Gregory P. SmithandGitHub 8a5e24a604 gh-160499: Pause asyncio TLS reads when SSL replies pile up (#160500) 2026-10-29 19:52:09 +05:30
Armaan SandhuandGitHub 43a4511b6e gh-159503: Avoid copying the unsent remainder of a bytes write in asyncio selector transports (#159504) 2026-10-29 14:15:15 +00:00
Cody MaloneyandGitHub 7b727ab601 gh-160781: Fix BytesIO overflow handling for large sizes (#160783) 2026-10-29 13:54:46 +00:00
Cody MaloneyandGitHub 0bfee22390 gh-160781: Fix StringIO.truncate() rejecting sizes above 2**31 - 1 on Windows (#160784) 2026-10-29 13:52:42 +00:00
2b6f543681 gh-160806: Fix precision loss in _pydatetime.timedelta with large float arguments (#160807)
Co-authored-by: Stan Ulbrych <[email protected]>
2026-10-29 13:37:41 +00:00
7e5227fb8c gh-160773: Fix use-after-free in OSError.__str__ (#160822)
Co-authored-by: Stan Ulbrych <[email protected]>
2026-10-29 11:27:14 +00:00
Inada NaokiandGitHub 87c0c35ba9 Doc: remove incorrect claims that bool objects have no methods (#160876) 2026-10-29 19:59:36 +09:00
ShamilandGitHub a6f65a681c gh-160679: Сombine argument conversion loops (#160838)
* refactor(ceval): combine argument conversion loops

* choore(docs): remove news
2026-10-29 11:20:28 +01:00
5364bdce6b gh-109564: asyncio: drop connections accepted by a closed server (#160851)
If Server.close() ran after a connection was accepted but before its
transport was created, Server._attach() hit an assertion, the error was
reported to the exception handler, and the half-built transport later
raised TypeError from __del__.  Close such connections quietly instead,
in both the selector and proactor accept paths.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-29 11:08:19 +01:00
2b2520abfa gh-128289: Add eager_tasks parameter to asyncio.run() and asyncio.Runner (#128293)
Co-authored-by: Guido van Rossum <[email protected]>

* Update Doc/library/asyncio-runner.rst

Co-authored-by: Guido van Rossum <[email protected]>

---------

Co-authored-by: Guido van Rossum <[email protected]>
2026-10-29 10:56:03 +01:00
Inada NaokiandGitHub e8e7ffdf08 Doc: Fix documentation links that pointed to other objects (#160871) 2026-10-29 18:52:20 +09:00
e5fad0433f gh-158646: Fix race in test_shutdown_corrupted_ssl_sends_close_notify (#160848)
The server called unwrap() right after corrupting the client's TLS
stream, which sent its own close_notify to a client that was about to
close its socket.  That turned the client's close into a TCP reset, and
on Windows a reset discards the client's close_notify that is still
unread, so the server failed with WinError 10054 (or 10053).

Wait for the client's close_notify with recv() before calling unwrap().
A ragged EOF without close_notify still makes unwrap() raise SSLError,
so the test keeps catching the gh-98078 regression.

Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-10-29 10:42:49 +01:00
16f209ba7d gh-151950: Document asyncio.BaseEventLoop and fix asyncio-extending.rst (#151976)
* gh-151950: Document `async.BaseEventLoop` and fix `asyncio-extending.rst`

* Apply suggestions from code review

Co-authored-by: Stan Ulbrych <[email protected]>

* Update Doc/library/asyncio-extending.rst

Co-authored-by: Hugo van Kemenade <[email protected]>

---------

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Andrew Svetlov <[email protected]>
2026-10-29 09:13:25 +01:00
Inada NaokiandGitHub b4be61ef71 Avoid bound method allocation in PyFile_WriteObject (#160803) 2026-10-29 07:24:55 +00:00
Hood ChathamandGitHub a9a81b1cdd gh-145177: Update to Emscripten 6.0.13 (#160854)
Bump Emscripten version to 6.0.13.
2026-10-29 12:08:22 +08:00
Brett CannonandGitHub f7c39d2316 Expose /dev to the WASI guest for testing purposes (GH-160856)
Discovered by running the test suite from a release build which can map all of `/` into the WASI guest (unlike when running the test suite in a source checkout).
2026-10-28 22:51:07 +00:00
8e605fe7d8 Add a release command to WASI CLI (#160790)
Co-authored-by: Savannah Ostrowski <[email protected]>
2026-10-28 19:44:31 +00:00
d85438045f gh-148919: Make test_redirect_no_path independent of proxy environment variables (#148920)
* gh-148919: Make test_redirect_no_path independent of proxy environment variables

* gh-148919: Also make test_redirect_encoding independent of proxy env

test_redirect_encoding uses build_opener(), which installs the default
ProxyHandler, so it failed the same way when http_proxy was set.  Move
the environment cleanup into a helper and use EnvironmentVarGuard.unset().

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Senthil Kumaran <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-28 19:38:18 +00:00
Senthil KumaranandGitHub af44688631 gh-56689 test case to cover for windows proxy_bypass misbehaving trailing ; entries on windows. (#160841)
gh-56689 test case to cover for windows proxy_bypass misbehaving with
trailing ; entries on windows.

Issue was fixed in GH-115210

Co-Authored by Claude Code.
2026-10-28 19:17:25 +00:00
19270d3bbb gh-142714: Exclude stripped PEG grammar text from translation catalogs (#159305)
Co-authored-by: Stan Ulbrych <[email protected]>
2026-10-28 16:03:04 +00:00
87f8c0d8a3 gh-57945: Document exceptions not wrapped by urlopen() (#160830)
Exceptions raised while reading or parsing the HTTP response, such as
http.client.HTTPException subclasses and OSError subclasses like
TimeoutError, propagate from urlopen() without being wrapped in
URLError.  Document this, and that ValueError is raised for an invalid
URL.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-28 08:55:44 -07:00
Petr ViktorinandGitHub d7ea5ba95e gh-156870: Use shared Stable ABI notes for remaining entries in tables (GH-160551)
- Use a shared Stable ABI note
- Convert some to list-table for maintainability
2026-10-28 16:04:49 +01:00
Petr ViktorinandGitHub cfe7e0a5ea gh-145921: Clarify return value of tp_traverse (GH-160455) 2026-10-28 15:49:14 +01:00
Ruoyu ZhongandGitHub a7ac7a8175 gh-160704: Restore C11-C17 static_assert fallback (GH-160705)
`_Py_STDC_VERSION` needs to be defined before its value can be checked.
In 8335bcbf26 (gh-160208: Add a private wrapper around __STDC_VERSION__
(GH-160376), 2026-10-23), the condition `defined(_Py_STDC_VERSION)` is
incorrectly negated, which prevents the fallback definition of
`static_assert` in C11-C17 builds and causes a build error when building
with an old C library that does not define `static_assert`.

Signed-off-by: Ruoyu Zhong <[email protected]>
2026-10-28 15:29:15 +01:00
Stan UlbrychandGitHub c71bf4d6f7 Add CODEOWNERS for Python/_strptime.c (#160820) 2026-10-28 13:06:47 +00:00
312222feeb gh-151950: Fix Sphinx reference warnings in termios docs (#153885)
Document the VMIN/VTIME, TCIFLUSH/TCOFLUSH/TCIOFLUSH,
TCOOFF/TCOON/TCIOFF/TCION and TIOC* window-size constants with
``.. data::`` directives so the ``:const:`` references resolve, and
drop termios.rst from Doc/tools/.nitignore.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
2026-10-28 13:25:33 +01:00
sobolevnandGitHub 3a304c25f1 Update mypy to 2.4.0 (#160813) 2026-10-28 14:34:51 +03:00
Bénédikt TranandGitHub e7ab898188 gh-140036: Test modulo and divmod of pure Python Decimal in unbounded contexts (#160482) 2026-10-28 09:20:11 +01:00
Michael J. SullivanandGitHub 312c427fe4 gh-158192: expose the future in asyncio FutureIter as fi_future (#158470) 2026-10-28 13:47:42 +05:30
Kumar AdityaandGitHub c79146a9eb gh-160804: Support generator based awaitables in asyncio introspection (#160805) 2026-10-28 08:14:16 +00:00
ShamilandGitHub e35424611f gh-160132: Reduce padding in _PyCfgBasicblock (#160149) 2026-10-28 06:53:42 +00:00
Neil SchemenauerandGitHub 75d96f8ade gh-158975: Replace fixed sleeps in multiprocessing tests (gh-158977)
Replace fixed sleeps used for synchronization in multiprocessing tests
with bounded waits to avoid failures on slow or overloaded systems.
Ensure pool cleanup runs even when assertions fail in the imap buffer
tests.
2026-10-27 21:15:21 -07:00
Inada NaokiandGitHub 495fef1b47 Doc: Fix allocator mismatch in PyStatus example (#160757) 2026-10-28 11:46:42 +09:00
Inada NaokiandGitHub d8242407a5 Doc: fix PyBytesWriter sample code (#160756) 2026-10-28 11:45:16 +09:00
Inada NaokiandGitHub dbf9776413 Doc: Fix typos in documentation and docstring (#160743) 2026-10-28 11:33:39 +09:00
6c695bfad4 gh-160561: Close the duplicated descriptor when socket.fromfd() fails (#160579)
Co-authored-by: wlkr73 <[email protected]>
Co-authored-by: lumenyr <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
2026-10-27 22:56:42 +00:00
Cary HawkinsandGitHub 926b0bf311 gh-159652: Fix import lock leak when the C stack is nearly exhausted (GH-159660)
When an import failed with a stack overflow RecursionError, releasing the import locks on the error path could itself raise RecursionError, because the cleanup runs in a new C frame. This left the global import lock or a module lock held forever, and later imports in other threads blocked indefinitely.

_imp.acquire_lock() now raises RecursionError when there is not enough stack left to release the lock. importlib calls it before taking any import lock, so this covers the per-module locks too. The module lock weakref callback skips cleanup in that case instead of
reporting an unraisable exception.
2026-10-27 14:43:36 -07:00
Brett CannonandGitHub 4521718ca5 GH-160135: Make sure the target triple makes it through configure (GH-160739) 2026-10-27 14:40:17 -07:00
techi101andGitHub d54c2d89b7 gh-126031: Mark argparse parameter headings as code (#160632) 2026-10-27 09:29:58 -07:00
085d3665b1 Doc: Fix errors in documentation examples (#160742)
Co-authored-by: Stan Ulbrych <[email protected]>
2026-10-27 19:54:33 +09:00
b5660533cc gh-141674: Docs: Add 'Python' to the <title> of the landing page (#141868)
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
2026-10-27 10:27:48 +00:00