Message173730
file.readlines() (and perhaps dare I say even file.readline()) should not even be mentioned in the tutorial, IMO. It is difficult to imagine a use case where just iterating over the file object isn't superior. I cannot remember the last time that I have used either of these methods. They ought to be relegated to the library docs. Presenting `for line in a_file:` as merely "An alternative approach" in the official tutorial is practically archaic. |
|
Date |
User |
Action |
Args |
2012-10-25 05:17:18 | cvrebert | set | recipients:
+ cvrebert, terry.reedy, peter.otten, ezio.melotti, eric.araujo, meador.inge, docs@python |
2012-10-25 05:17:18 | cvrebert | set | messageid: <1351142238.27.0.0963448066306.issue13510@psf.upfronthosting.co.za> |
2012-10-25 05:17:18 | cvrebert | link | issue13510 messages |
2012-10-25 05:17:17 | cvrebert | create | |
|