[Twisted-Python] Re: supressess warnings

Christopher Armstrong radix at twistedmatrix.com
Wed Apr 2 01:25:20 EST 2003

On Tue, Apr 01, 2003 at 10:45:23PM -0500, Itamar Shtull-Trauring wrote:
> On Tue, 1 Apr 2003 16:48:01 -0500
> Andrew Dalke <dalke at dalkescientific.com> wrote:
> > to actually use the log.  It isn't obvious anywhere that that
> > import will make a system level change.
> >    - what if I've changed warnings.showwarning in my own
> >         code (or in some other 3rd party package).  Where's the
> >         documentation which states that there will be a problem?
> > 
> >    - It's pervasive.  That is, if I import twisted.lore (perhaps
> >        because I want it to use it for my own documentation
> >        system) it's still the case that warnings.showwarning
> >        gets replaced.  There should be no reason for that.
> I agree that this is bad. If you complain enough maybe glyph will listen
> to reason.

Well, I was the one who made this change, and there's no particular
philosophical reasons behind it. I agree moving it to twistd would be

 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/

More information about the Twisted-Python mailing list