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 aeros
Recipients aeros, benjamin.peterson, docs@python, pitrou, rhettinger, serhiy.storchaka, stutzbach
Date 2019-07-26.07:34:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564126489.41.0.287735982967.issue37635@roundup.psfhosted.org>
In-reply-to
Content
Upon further consideration, I think that it would be best to leave the code examples as is in the "inputoutput" tutorial, but it still be worth mentioning that the constants exist as alternatives. This is due to adding the additional step of "import io" in order to be able to access the constants. The tutorial code examples should probably aim to not add additional extra lines that are not needed.

While I was working on a PR for updating the tutorial, I noticed that the second argument's name for seek() was  *from_what* instead of *whence*. Was this an older name for the argument that is now outdated or am I missing something?

Doc/tutorial: https://github.com/python/cpython/blob/master/Doc/tutorial/inputoutput.rst#methods-of-file-objects

Doc/library: https://docs.python.org/3/library/io.html#io.IOBase.seek
History
Date User Action Args
2019-07-26 07:34:49aerossetrecipients: + aeros, rhettinger, pitrou, benjamin.peterson, stutzbach, docs@python, serhiy.storchaka
2019-07-26 07:34:49aerossetmessageid: <1564126489.41.0.287735982967.issue37635@roundup.psfhosted.org>
2019-07-26 07:34:49aeroslinkissue37635 messages
2019-07-26 07:34:49aeroscreate