This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author andymaier
Recipients andymaier, docs@python
Date 2020-09-03.01:32:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599096760.67.0.528727675431.issue41698@roundup.psfhosted.org>
In-reply-to
Content
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 "<stdin>", line 2, in <module>
TypeError: seek() takes no keyword arguments

Which I coded with a keyword argument because the documentation says so:

   seek(offset, whence=SEEK_SET)

See https://docs.python.org/3.8/library/io.html#io.IOBase.seek

The fix for issue issue25030 changed the documentation to:

   seek(offset[, whence])

and supposedly was integrated into 2.7, 3.4, and the default branch back then.

It seems the fix got lost?
History
Date User Action Args
2020-09-03 01:32:40andymaiersetrecipients: + andymaier, docs@python
2020-09-03 01:32:40andymaiersetmessageid: <1599096760.67.0.528727675431.issue41698@roundup.psfhosted.org>
2020-09-03 01:32:40andymaierlinkissue41698 messages
2020-09-03 01:32:40andymaiercreate