Chris Angelico rosuav at
Mon Aug 8 12:26:18 EDT 2011

On Mon, Aug 8, 2011 at 5:08 PM, Verde Denim <tdldev at> wrote:
> and it returns -
> "TypeError" with no other information...
> It appears to be generated from the line
> msg = ("From: %s\r\nTo: %s\r\n\r\n"
>        % (fromaddr, ", ".join(toaddrs)))
> But I'm not sure why...

I transcribed pieces manually from your code into Python 2.4.5 and
didn't get an error. What did you enter at the From: and To: prompts?

As a side point: Does anyone else feel that it's potentially confusing
to have a function whose parameter has the same name as the function
itself? This is straight from the example.


More information about the Python-list mailing list