New submission from Mikhail Zakharov <zmey20...@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@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue33229>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to