[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2021-10-20 Thread Tomer Vromen
Tomer Vromen added the comment: Just wanted to add that I encountered this today, went to file a ticket, and found this one. I'm fine with either style of documentation. -- nosy: +tomerv ___ Python tracker

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Andy Maier
Andy Maier added the comment: Thanks for referencing the PR that reintroduced the old way of documenting it. >From my perspective, the proposal is fine. There are already some cases where >it is documented like that, e.g. str.removeprefix(prefix, /). --

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Inada Naoki
Inada Naoki added the comment: Since we have positional-only argument, can we document it as `seek(offset, whence=SEEK_SET, /)`? -- ___ Python tracker ___

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Inada Naoki
Inada Naoki added the comment: For the record, https://github.com/python/cpython/pull/14691/files reintroduced `whence=SEEK_SET`. -- nosy: +inada.naoki ___ Python tracker

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Andy Maier
New submission from Andy Maier : I stumbled across the problem reported in https://bugs.python.org/issue25030 on Python 3.8: >>> with open('x.txt', 'a') as fp: ... fp.seek(0, whence=os.SEEK_END) ... Traceback (most recent call last): File "", line 2, in TypeError: seek() takes no