Re: [Python-Dev] Dealing with a desired change to warnings.showwarning()

2008-04-28 Thread Antoine Pitrou
Brett Cannon python.org> writes: > As http://bugs.python.org/issue2705 points out, though, since the > function has been documented as being allowed to be overridden, this > potentially breaks existing showwarning() implementations. That means > something needs to change. > > One option is to int

[Python-Dev] Dealing with a desired change to warnings.showwarning()

2008-04-27 Thread Brett Cannon
As part of my rewrite of warnings into C, I added a new, optional argument to showwarning(): line, which defaults to None. As http://bugs.python.org/issue2705 points out, though, since the function has been documented as being allowed to be overridden, this potentially breaks existing showwarning(