Hian-Kun Tenn <hian...@gmail.com> 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 <rep...@bugs.python.org> wrote: > > 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 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