Hian-Kun Tenn added the comment:
Hi,
I didn't know that and feel sorry to bother you with the non-bug "issue."
Thank you for the quick and thoughtful reply. :-)
Hiankun
On Thu, Dec 2, 2021 at 12:23 PM Zachary Ware wrote:
>
> Zachary Ware added the comment:
>
> The `/` denotes that `forma
Zachary Ware added the comment:
The `/` denotes that `format` is a positional-only argument; you cannot make a
call like `struct.unpack_from(format=my_format, buffer=my_buffer)`, it must be
`struct.unpack_from(my_format, buffer=my_buffer)` or
`struct.unpack_from(my_format, my_buffer)`. The
New submission from Hian-Kun Tenn :
In the document of "struct"
(https://docs.python.org/3.9/library/struct.html#struct.unpack_from), there's
typo in it.
The document read
`struct.unpack_from(format, /, buffer, offset=0)`
and I believe it should be
`struct.unpack_from(format, buffer, offset=0