File I/O, rfc822, and stdin/stdout
ssthapa at harper.uchicago.edu
ssthapa at harper.uchicago.edu
Tue Jan 16 12:29:57 EST 2001
Sheila King <sheila at thinkspot.net> wrote:
>
><rfc822.Message instance at 80bf6d8>
Your python script doesn't seem to understand how to print
objects from the rfc822 module. In particular I believe you need to
read the fp instance variable and print the data it returns. E.g.
for line in foo.fp.readlines():
print line
or something like that.
--
------------------------------------------------------------------
|
Suchandra Thapa | "There are only two kinds of math books.
s-thapaNO at SPAMuchicago.edu | Those you cannot read beyond the first
| sentence, and those you cannot read
| beyond the first page."
| -C.N. Yang
------------------------------------------------------------------
More information about the Python-list
mailing list