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

shiyao.ma report at bugs.python.org
Tue Sep 8 15:44:41 CEST 2015

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 seek(offset, whence) is allowed.

Passing seek(offset, whence=SEEK_FOOBAR) will throw an error.

The patch fixes the function signature as seek(offset[, whence])

assignee: docs at python
components: Documentation
files: seek.patch
keywords: patch
messages: 250200
nosy: berker.peksag, docs at python, ezio.melotti, introom
priority: normal
severity: normal
status: open
title: io.[Text]IOBase.seek doesn't take keyword parameter
versions: Python 3.5
Added file: http://bugs.python.org/file40406/seek.patch

Python tracker <report at bugs.python.org>

More information about the docs mailing list