POP3 Mail Download

Bob Piton piton123 at yahoo.com
Sat Mar 18 20:21:01 EST 2006


On Sat, 18 Mar 2006 18:34:56 -0500, Kevin F wrote:

> Dennis Lee Bieber wrote:
>> On Sat, 18 Mar 2006 17:24:05 -0500, Kevin F <neurogasm at gmail.com>
>> declaimed the following in comp.lang.python:
>> 
>>> I fixed the indentation to:
>>>
>>> emails = []
>>> for msg in messagesInfo:
>>>          msgNum = int(split(msg, " ")[0]
>>>          msgSize = int(split(msg, " ")[1]
>> 
>> 	Now look at your parentheses...
>>> and it still doesn't work, what's wrong?
>> 
>>>          msgNum = int(split(msg, " ")[0]
>> HINT:      0           1     2        1   ?
> i have no idea what you are hinting at, can you please just tell me what i
> need to change?

I know how you feel; it's brutal trying to get elementary information from
this group.

I think what he is hinting at is that you are missing a right parentheses.

msgNum = int(split(msg, " ")[0]

should be:

msgNum = int(split(msg, " "))[0]


msgSize = int(split(msg, " ")[1]

should be:

msgSize = int(split(msg, " "))[1]


Now if only somebody would tell me, with elementary examples, how you
write to the thing called 'stdout' and how you read from 'stdin'.




More information about the Python-list mailing list