This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mikhail Zakharov
Recipients Mikhail Zakharov, docs@python
Date 2018-04-05.09:08:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522919317.94.0.682650639539.issue33229@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-04-05 09:08:38Mikhail Zakharovsetrecipients: + Mikhail Zakharov, docs@python
2018-04-05 09:08:37Mikhail Zakharovsetmessageid: <1522919317.94.0.682650639539.issue33229@psf.upfronthosting.co.za>
2018-04-05 09:08:37Mikhail Zakharovlinkissue33229 messages
2018-04-05 09:08:37Mikhail Zakharovcreate