[docs] [issue13510] Clarify that readlines() is not needed to iterate over a file

Dan Riti report at bugs.python.org
Sat Apr 13 22:13:36 CEST 2013


Dan Riti added the comment:

After reading the comments, I generated a patch that does the following:

- Reorganize to present `for line in f:` as the first approach for reading lines. I refrained from saying it's the *preferred* approach, however I can add that if desired.
- Reorganize to present `f.readlines()` as the alternative approach.

Any feedback is more then welcome! Thanks.

----------
keywords: +patch
nosy: +dan.riti
Added file: http://bugs.python.org/file29822/demote-readlines.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13510>
_______________________________________


More information about the docs mailing list