Well, another try Re: while c = f.read(1)

Robert Kern rkern at ucsd.edu
Sat Aug 20 02:25:40 EDT 2005


James wrote:
>>for data in iter(lambda:f.read(1024), ''):
>>    for c in data:
> 
> What are the meanings of Commands 'iter' and 'lambda', respectively? I
> do not want you to indicate merely the related help pages. Just your
> ituitive and short explanations would be enough since I'm really newbie
> to Python.

No sorry, that's not how the newsgroup works. You read the documentation 
first, then come back with specific questions about what you didn't 
understand or couldn't find.

http://www.catb.org/~esr/faqs/smart-questions.html

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list