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

2005-08-23 Thread Delaney, Timothy (Tim)
Robert Kern wrote: James asked a question in such a way that I didn't think it would get answered. Judging from the other non-responses to his post, I was right. I showed him the way to ask questions such that they *will* get answered, and he came back, did so, and got his questions answered.

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

2005-08-22 Thread Steve Holden
Robert Kern wrote: Paul Rubin wrote: Robert Kern [EMAIL PROTECTED] writes: http://www.catb.org/~esr/faqs/smart-questions.html Is it a *smart* way or *necessary* way? It's the polite way. And probably the only way you're going to get your questions actually answered. I wonder if there's a

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

2005-08-22 Thread Robert Kern
Steve Holden wrote: Robert Kern wrote: Coincidentally, those are exactly the reasons why I posted it in the first place. I care not a whit about decluttering the newgroup, an impossible task. It's clear that you care not a whit about it. Unfortunately the only way to preserve bandwidth on

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

2005-08-20 Thread James
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. -James

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

2005-08-20 Thread Robert Kern
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

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

2005-08-20 Thread James Kim
Robert Kern wrote: http://www.catb.org/~esr/faqs/smart-questions.html Is it a *smart* way or *necessary* way? Plus, my question was not for the detail description but for the intuitive guide leading the beginner's further study. I understand that too many repeated talks make cyberian tired.

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

2005-08-20 Thread Jeremy Jones
James Kim wrote: Robert Kern wrote: http://www.catb.org/~esr/faqs/smart-questions.html Is it a *smart* way or *necessary* way? Of course it's not *necessary*. I mean, the world isn't going to come to an end if it doesn't happen. There is no logical contingency making it so.

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

2005-08-20 Thread Robert Kern
James Kim wrote: Robert Kern wrote: http://www.catb.org/~esr/faqs/smart-questions.html Is it a *smart* way or *necessary* way? It's the polite way. And probably the only way you're going to get your questions actually answered. Read the documentation. If you still don't understand

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

2005-08-20 Thread Paul Rubin
Robert Kern [EMAIL PROTECTED] writes: http://www.catb.org/~esr/faqs/smart-questions.html Is it a *smart* way or *necessary* way? It's the polite way. And probably the only way you're going to get your questions actually answered. I wonder if there's a way to killfile posts that contain

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

2005-08-20 Thread Grant Edwards
On 2005-08-20, James [EMAIL PROTECTED] 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. Rude much? If somebody is kind enough to point out

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

2005-08-20 Thread Robert Kern
Paul Rubin wrote: Robert Kern [EMAIL PROTECTED] writes: http://www.catb.org/~esr/faqs/smart-questions.html Is it a *smart* way or *necessary* way? It's the polite way. And probably the only way you're going to get your questions actually answered. I wonder if there's a way to killfile

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

2005-08-20 Thread Bengt Richter
On 19 Aug 2005 23:13:44 -0700, James [EMAIL PROTECTED] 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

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

2005-08-20 Thread James Sungjin Kim
Robert Kern 쓴 글: Now go read the documentation. Thanks to your comments, I read the corresponding helps searched by Google. (Sorry to say a specific search engine here, but I must say that it is really convinient.) Now I realized that Command 'lambda' is a similar to Command 'inline' in

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

2005-08-20 Thread Paul Rubin
James Sungjin Kim [EMAIL PROTECTED] writes: Now I realized that Command 'lambda' is a similar to Command 'inline' in C++. In addition, Command 'iter' is something new but not much new to c engineers, since it is related to 'for loops', e.g., Actually not related at all. Nothing like lambda or

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

2005-08-19 Thread en.karpachov
On 18 Aug 2005 22:21:53 -0700 Greg McIntyre wrote: f = open(blah.txt, r) while True: c = f.read(1) if c == '': break # EOF # ... work on c Is some way to make this code more compact and simple? It's a bit spaghetti. This is what I would ideally like: f =