Skip to content

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

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

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

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.13: 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.13'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 enabled auto-merge (squash) July 15, 2026 09:28
@serhiy-storchaka serhiy-storchaka merged commit 16b03d8 into python:3.13 Jul 15, 2026
41 of 43 checks passed
@serhiy-storchaka serhiy-storchaka deleted the backport-153650-3.13 branch July 15, 2026 11:44
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