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 2016-05-01 10:09 by pfalcon.

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
2016-05-01 10:09:35pfalconcreate