Skip to content

[3.14] gh-71086: Document negative offset support in struct.pack_into() and unpack_from() (GH-153650)#153753

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-153650-3.14
Jul 15, 2026
Merged

[3.14] gh-71086: Document negative offset support in struct.pack_into() and unpack_from() (GH-153650)#153753
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-153650-3.14

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 15, 2026

Copy link
Copy Markdown
Member

gh-71086: Document negative offset support in struct.pack_into() and unpack_from() (GH-153650)

(cherry picked from commit 1706d14)

Adapted for 3.14: the struct.pack_into functions have not been converted to Argument Clinic on this branch, so the "A negative offset counts from the end of the buffer" note was added to the existing (partly hand-written) docstrings, preserving 3.14's wording. Negative-offset support itself is already present in the C code.

Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

…) and unpack_from() (pythonGH-153650)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit 1706d14)
@serhiy-storchaka serhiy-storchaka merged commit d85d26b into python:3.14 Jul 15, 2026
51 checks passed
@serhiy-storchaka serhiy-storchaka deleted the backport-153650-3.14 branch July 15, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant