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

Kyle Stanley report at bugs.python.org
Mon Jul 22 03:53:17 EDT 2019


Kyle Stanley <aeros167 at gmail.com> added the comment:

> I would agree with changing the tutorial.  The rest doesn't need to be changed.

Fair enough, that's understandable. I'll look into creating a PR for the tutorial to attach to this issue. Thanks for the feedback Antoine and Raymond. 

>AFAIK there is an open PR which sweeps through the standard library, changing seek() >everywhere to use named constants.

Even I would disagree with doing it through all of stdlib, especially with the current feedback. I was primarily advocating for using the constants in places where the io module was already being imported, since in that case, it wouldn't result in any additional overhead. Replacing it everywhere would require a significant number of additional io imports.

----------

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


More information about the docs mailing list