Help with ASCII (UNIX<->DOS)

Peter Hansen peter at engcorp.com
Wed Sep 26 23:30:38 EDT 2001


Peter Hansen wrote:
> 
> Jeff Shannon wrote:
> >
> > "CeK!" wrote:
> > > <...>
> > >     typ, data = M.fetch(num, '(RFC822)')
> > >     WriteEmail('%s\n' % (data[0][1]))
> > > <...>
> > >
> > > def WriteEmail(Uname,EData):
> >
> > <...>
> >
> > I don't know about any other problems, but it looks like you're defining
> > WriteEmail to take two arguments, but you're only calling it with one  --
> > '%s\n' % data[0][1]  (the inner parens are unnecessary) resolves into a
>                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> But nice style, given that it means any time the format string has
> another item added to it (extremely comment situation), one can just
                                      ^^^^^^^
Doh!  Of course that should read "common situation". :-(



More information about the Python-list mailing list