[New-bugs-announce] [issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited
Andy Maier
report at bugs.python.org
Wed Sep 2 21:32:40 EDT 2020
New submission from Andy Maier <andreas.r.maier at gmx.de>:
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?
----------
assignee: docs at python
components: Documentation
messages: 376272
nosy: andymaier, docs at python
priority: normal
severity: normal
status: open
title: io.[Text]IOBase.seek doesn't take keyword parameter - revisited
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41698>
_______________________________________
More information about the New-bugs-announce
mailing list