[docs] [issue33229] Documentation - io — Core tools for working with streams - seek()

Mikhail Zakharov report at bugs.python.org
Thu Apr 5 05:08:38 EDT 2018


New submission from Mikhail Zakharov <zmey20000 at yahoo.com>:

Documentation for io.IOBase class and it's seek() method at https://docs.python.org/3/library/io.html mentions SEEK_* constants like:

"    SEEK_SET or 0 – start of the stream (the default); offset should be zero or positive
    SEEK_CUR or 1 – current stream position; offset may be negative
    SEEK_END or 2 – end of the stream; offset is usually negative
"

It seems, they actually should be used as os.SEEK_SET, os.SEEK_CUR and os.SEEK_END.

----------
assignee: docs at python
components: Documentation
messages: 314970
nosy: Mikhail Zakharov, docs at python
priority: normal
severity: normal
status: open
title: Documentation -  io — Core tools for working with streams - seek()
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33229>
_______________________________________


More information about the docs mailing list