Skip to content

[pull] main from python:main - #1655

Merged
pull[bot] merged 8 commits into
All-Blockchains:mainfrom
python:main
Sep 1, 2026
Merged

[pull] main from python:main#1655
pull[bot] merged 8 commits into
All-Blockchains:mainfrom
python:main

Conversation

@pull

@pull pull Bot commented Sep 1, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

serhiy-storchaka and others added 8 commits September 1, 2026 15:55
…156298)

The iteration stops when the callable raises the specified exception (an
exception class or a tuple of exception classes).  It is keyword-only and
can be used without the stop value.  The second parameter of iter() is now
named stop_value and can be passed as a keyword argument.

aiter() now accepts the same parameters, which it never had before: the
callable is called and its result is awaited for every __anext__().

If the callable raises StopIteration (StopAsyncIteration in aiter()) which
does not match stop_exception, it is replaced with RuntimeError, as PEP 479
and PEP 525 do for generators.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: hpkfft.com <paul@hpkfft.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
…lementTree (GH-156746)

XMLParser.feed() and ElementTree.parse() raised OverflowError, because Expat
takes the length as an int.  The data is now fed to Expat in chunks of 1 MiB,
as xml.parsers.expat does since bpo-17089, so the pure Python implementation
already accepted such input.
Use PyBytesWriter in _PyCodec_SurrogateEscapeUnicodeEncodeError().

Replace soft deprecated PyBytes_FromStringAndSize() with
PyBytesWriter.
Replace soft deprecated PyBytes_FromStringAndSize() with
PyBytesWriter.
…H-156730)

ElementTree.write(), tostring() and tostringlist() get the standalone
parameter: True for standalone="yes", False for standalone="no", and None
(the default) to omit it.  An XML declaration is written if it is not None,
and combining it with a false xml_declaration is an error.
@pull pull Bot locked and limited conversation to collaborators Sep 1, 2026
@pull pull Bot added the ⤵️ pull label Sep 1, 2026
@pull
pull Bot merged commit 76fefef into All-Blockchains:main Sep 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants