[issue25030] io.[Text]IOBase.seek doesn't take keyword parameter

2015-09-10 Thread Martin Panter
Martin Panter added the comment: Thanks for the patch. I took the liberty of also fixing the doc string of BytesIO.seek(). -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue25030] io.[Text]IOBase.seek doesn't take keyword parameter

2015-09-08 Thread shiyao.ma
New submission from shiyao.ma: The doc is here: https://docs.python.org/3.5/library/io.html#io.IOBase.seek and here: https://docs.python.org/3.5/library/io.html#io.TextIOBase.seek It is said the parameter list is in the form of: seek(offset, whence=SEEK_SET) But actually only: seek(offset) or

[issue25030] io.[Text]IOBase.seek doesn't take keyword parameter

2015-09-08 Thread Martin Panter
Martin Panter added the comment: This also bugs me, and the same problem exists in other parts of the documentation. Perhaps you might be interested in Issue 23738 and whether changing to the new notation used by PEP 457, pydoc, help(), Argument Clinic is any good: seek(offset,

[issue25030] io.[Text]IOBase.seek doesn't take keyword parameter

2015-09-08 Thread Martin Panter
Martin Panter added the comment: I will try to commit your patch today when I up to it. Maybe the “draft” status of that PEP is out of date. The slash (/) indicator is already being used in some places in pydoc, e.g. $ pydoc object.__eq__ Help on wrapper_descriptor in object: object.__eq__ =