how to count lines in a file ?

Fredrik Lundh fredrik at pythonware.com
Wed Jul 24 13:32:09 EDT 2002


Alex Martelli wrote:

> BTW, GvR claimed (less than a month ago on the python-dev list)
> that having an integer argument to readlines was a design error.

except that he was talking about "readline", not "readlines".

(does anyone here even know that readline takes an optional
integer argument, and what it does? ;-)

</F>





More information about the Python-list mailing list