smtplib, capturing output from set_debuglevel ??

Steve Holden steve at holdenweb.com
Fri Oct 8 08:39:00 EDT 2004


Josiah Carlson wrote:

>>If you want to use file primitives to read the value back, just create 
>>another one:
>>
>>inpt = StringIO.StringIO(firstStringIO.getvalue())
>>
>>then you can read the printed output from inpt just like a file.
> 
> 
> Or even:
> 
>  firstStringIO.seek(0)
> 
Yup, actually rather better than my hurried attempt.

regards
  Steve
-- 
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119




More information about the Python-list mailing list