New submission from Mikhail Zakharov <>:

Documentation for io.IOBase class and it's seek() method at 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 

assignee: docs@python
components: Documentation
messages: 314970
nosy: Mikhail Zakharov, docs@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 <>
Python-bugs-list mailing list

Reply via email to