This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: struct.pack_into(), struct.unpack_from() don't document support for negative offsets
Type: Stage:
Components: Documentation Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, pfalcon
Priority: normal Keywords:

Created on 2016-05-01 10:09 by pfalcon, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg264590 - (view) Author: Paul Sokolovsky (pfalcon) * Date: 2016-05-01 10:09
See
https://docs.python.org/3/library/struct.html#struct.pack_into
https://docs.python.org/3/library/struct.html#struct.unpack_from

Actual source contains code like:

    if (offset < 0)
        offset += vbuf.len;

to allow specify offsets from the end of a buffer.
History
Date User Action Args
2022-04-11 14:58:30adminsetgithub: 71086
2016-05-01 10:09:35pfalconcreate