Message186936
| Author |
ezio.melotti |
| Recipients |
ashwch, cvrebert, dan.riti, docs@python, eric.araujo, ezio.melotti, kushal.das, meador.inge, mikehoy, peter.otten, pitrou, terry.reedy |
| Date |
2013年04月14日.17:51:28 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1365961888.99.0.57311746796.issue13510@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I would actually remove the whole section about readlines() or possibly just mention it briefly (something like "If you want to read all the lines of a file in a list you can also use f.readlines().")
The sizehint arg is rarely used, so I don't see the point of going in such details about it in the tutorial. In Lib/, there are only a couple of places where it's actually used:
Lib/fileinput.py:358: self._buffer = self._file.readlines(self._bufsize)
Lib/idlelib/GrepDialog.py:90: block = f.readlines(100000) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年04月14日 17:51:29 | ezio.melotti | set | recipients:
+ ezio.melotti, terry.reedy, peter.otten, pitrou, eric.araujo, cvrebert, meador.inge, docs@python, mikehoy, kushal.das, ashwch, dan.riti |
| 2013年04月14日 17:51:28 | ezio.melotti | set | messageid: <1365961888.99.0.57311746796.issue13510@psf.upfronthosting.co.za> |
| 2013年04月14日 17:51:28 | ezio.melotti | link | issue13510 messages |
| 2013年04月14日 17:51:28 | ezio.melotti | create |
|