Skip to content

[pull] main from python:main - #1479

Merged
pull[bot] merged 4 commits into
tj-python:mainfrom
python:main
Sep 14, 2026
Merged

pull[bot] merged 4 commits into
tj-python:mainfrom
python:main

Conversation

@pull

@pull pull Bot commented Sep 14, 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 : )

pablogsal and others added 4 commits September 14, 2026 20:31
…53576)

* gh-153568: Don't materialize parser token text that is never read

Only tokens whose text is actually consumed get a bytes object;
operators and structural tokens no longer allocate one.

* Update Parser/pegen.c

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>

* gh-153568: Preserve keyword token text

---------

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Add tests on PyMarshal_ReadObjectFromString() and
PyMarshal_WriteObjectToString().

Add test on PyMarshal_WriteObjectToFile(NULL).
Replace soft deprecated _PyBytes_Resize() with PyBytesWriter.
Replace soft deprecated PyBytes_FromStringAndSize() with
PyBytesWriter.
@pull pull Bot locked and limited conversation to collaborators Sep 14, 2026
@pull pull Bot added the ⤵️ pull label Sep 14, 2026
@pull
pull Bot merged commit c674116 into tj-python:main Sep 14, 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.

2 participants