Bob Piton wrote:
> 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]
Or more likely:
msgNum = int(split(msg, " ")[0])
> msgSize = int(split(msg, " ")[1]
> should be:
> msgSize = int(s
Bob Piton wrote:
> On Sat, 18 Mar 2006 18:34:56 -0500, Kevin F wrote:
>>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.
You could try the python-tutor list,
Kevin F <[EMAIL PROTECTED]> wrote:
...
> > msgSize = int(split(msg, " ")[1] # line is missing closing paren,
...
> thanks, that helped fix the syntax error, however, now when i run it, it
> gives me an error for 'split', saying "name 'split' is not defined"
>
> i'm new to python so
Kevin F <[EMAIL PROTECTED]> wrote:
> i'm trying to this this code to access my pop server but it only prompts
> for a password and not a username, how do i get it to ask for my
> username as well?
getpass.getuser() doesn't prompt, it gets your username from the
environment or the OS. If you wan
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 <[EMAIL PROTECTED]>
>> declaimed the following in comp.lang.python:
>>
>>> I fixed the indentation to:
>>>
>>> emails = []
>>> for msg in messagesInfo:
>>> msgNum
Paul McGuire wrote:
> "Kevin F" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Dennis Lee Bieber wrote:
>>> On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]>
>>> declaimed the following in comp.lang.python:
>>>
>>>
However, if I try to actually download the mess
"Kevin F" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dennis Lee Bieber wrote:
> > On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]>
> > declaimed the following in comp.lang.python:
> >
> >
> >> However, if I try to actually download the messages themselves, my
> >>
Dennis Lee Bieber wrote:
> On Sat, 18 Mar 2006 17:24:05 -0500, Kevin F <[EMAIL PROTECTED]>
> 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,
Dennis Lee Bieber wrote:
> On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>
>> However, if I try to actually download the messages themselves, my
>> python editor highlights 'msgSize' and says "invalid syntax" when I run
>> the f