
-----------------------------------
wtd
Fri Sep 09, 2005 11:38 pm

Tricky Python question  :)
-----------------------------------
What's wrong with the following statement?

"In Python, methods are public by default."

-----------------------------------
wtd
Sat Sep 10, 2005 1:34 am


-----------------------------------
What's the difference between:

for line in file('foo').readlines():
   ...

And:

for line in file('foo'):
   ...

-----------------------------------
Hikaru79
Sat Sep 10, 2005 1:41 am


-----------------------------------
 In that same thread, there's another question up.  :-)
 Oh, I know that one. I think.
 Nifty
 Is it that 'readlines()' reads the whole file in at once and then splits it into iteratable lines, while the second one reads the file line by line?
 Indeed.
 w00t =D
