email module, redirecting to stdout

Peter Otten __peter__ at web.de
Tue Oct 4 16:40:32 CEST 2005


Just wrote:

>> smtplib obtains a copy of stderr by
>> from sys import stderr

> Ouch. I'd consider this a bug. "from sys import stderr" should at least
> be considered bad style.
 
I'd rather say this is the low-tech equivalent to

debug = logging.getLogger("smtplib").debug

an approach which is currently only taken by the cookielib module.

Peter




More information about the Python-list mailing list