[docs] Bug in email-examples

Sandro Tosi sandro.tosi at gmail.com
Mon Oct 31 02:50:48 CET 2011


Hello,

On Sat, Oct 29, 2011 at 04:32, Viet Hung Nguyen <famihug at gmail.com> wrote:
> hi, I found this bug in using MIME example
>
> http://docs.python.org/library/email-examples.html
>
> Here’s an example of how to send a MIME message containing a bunch of family
> pictures that may be residing in a directory:
>
> ...
>
>> for file in pngfiles:
>>     # Open the files in binary mode.  Let the MIMEImage class
>> automatically
>
> there is no pngfiles before this LOC

You're right about that, but I think it's some kind of "meta-example":
like for 'me' and 'family', they are not defined, but they clearly
speak for themselves what they contain (a list of png file names, the
address of the sender or the address of the family).

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list