[docs] [issue37635] Using constant for whence arg in seek()

Antoine Pitrou report at bugs.python.org
Fri Jul 26 05:18:18 EDT 2019


Antoine Pitrou <pitrou at free.fr> added the comment:

I don't know. "whence" is the official name of the argument in the POSIX API:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html

Perhaps "from_what" is assumed to be more understandable by the average reader?

Also, os.lseek() uses "how":
https://docs.python.org/3/library/os.html#os.lseek

----------

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


More information about the docs mailing list