Zachary Ware <zachary.w...@gmail.com> 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 same syntax can be used to define your own function with positional-only arguments, see https://docs.python.org/3/tutorial/controlflow.html#positional-only-parameters or https://docs.python.org/3/reference/compound_stmts.html#function-definitions ---------- nosy: +zach.ware resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45958> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com