sorry for my question, but i've read the documentation, and can't find where is the explanation of how it is exactly works (but of course i do believe you). If it is buit in function, can i see the source code of the method to find it out?
Kent Johnson wrote:
Maksim Kasimov wrote:
Kent Johnson wrote:
> for line in open(path):
the line of your example raise another question: opened file will be read at once time, as method readlines() do, or it will be read line by line as method readline() do.
It will be read line by line as readline() does.
as far i know, it is depends on implementation of method "__iter__" of the object that "open()" returns, so another question: where i can find such an information (about how does such a functions works)?
http://docs.python.org/lib/built-in-funcs.html http://docs.python.org/lib/bltin-file-objects.html
Kent
-- Best regards, Maxim Kasimov mailto: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list