Drew Raines <[EMAIL PROTECTED]> writes: > What's the purpose of assigning DEBUGSTREAM to Devnull()? Why not > just > > DEBUGSTREAM = None
Did you try using `DEBUGSTREAM = None' ? It doesn't eat the output like Devnull() does. e.g, >>> print >> None, 'test' test >>> print >> Devnull(), 'test' >>> Apropos, tmda-ofmipd was based on Python's smtpd.py module because at the time, asynchat was undocumented, and it also got me much of the way there. Devnull() is one of those pieces of code left over from smtpd.py. > I'm trying to get a better understanding of Python's OO, and Jason's > code is so readable that it's a good study source. Thank-you, I'm flattered. Mailman (esp. the 2.1 series) is also a good study source for this type of thing. I use it for this myself quite often. _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
