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

Bengt Richter bokr at oz.net
Sat Aug 20 18:48:25 EDT 2005


On 19 Aug 2005 23:13:44 -0700, "James" <txdiversity at hotmail.com> 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.
>
Would you please read the above, as if you were someone else?
The above sounds to me like you think you're typing commands
to an enhanced google, or worse, to an abused employee or servant.

To say "I do not want you to ..." sounds so arrogantly presumptious
that I'm sure if that "works" for you IRL, you must be living in a very
pampered and sheltered environment.

The downside of such environments is that if simple demanding "works"
and you get things and services from people as if they were robots,
you lose out on the thing that draws most of us, I think, to c.l.p
and similar social spaces -- which is a feeling of shared consciousness
and contact with other humans within a sphere common interests.

You're welcome to try again ;-)

(BTW, sorry if "James" doesn't mean English is your mother tongue, and I have
misinterpreted your manner of expression. If so, this may still be a useful
indication to you of how wording can determine response ;-)

Regards,
Bengt Richter



More information about the Python-list mailing list