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
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(