uu.py - get result of uuencode() in a string

Richard van de Stadt stadt at freemail.nl
Wed Jul 21 09:40:17 EDT 1999


Is it possible to get the output of the uuencode() function
into a string, instead of a file or stdout?

I think, usually one uses uuencode to get a file accross
via email.

In CyberChair (http://trese.cs.utwente.nl/CyberChiair)
I use smtplib to send email, and would like to include
the output of uuencode() without the overhead of first
writing it to a file and then reading that file back in.

The alternative, of course, is to just copy&paste the
relevant parts of the uuencode() function.

Richard.




More information about the Python-list mailing list