[issue3391] Idle uses old showwarning signature

Robert Schuppenies report at bugs.python.org
Thu Jul 17 11:51:56 CEST 2008


New submission from Robert Schuppenies <okkotonushi at googlemail.com>:

Idle does not use the 'line' argument for its showwarning function. This
results in the DeprecationWarning "functions overriding
warnings.showwarning() must support the 'line' argument", or, when
called from within Idle "TypeError: idle_formatwarning_subproc() takes
exactly 4 arguments (5 given)".

The error can be reproduced from within Idle as well as demonstrated
with verify.py.

The attached patch applies the behavior of the default warnings
implementation.

----------
components: IDLE
files: idle.patch
keywords: patch
messages: 69879
nosy: brett.cannon, schuppenies
priority: normal
severity: normal
status: open
title: Idle uses old showwarning signature
type: behavior
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10926/idle.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3391>
_______________________________________


More information about the Python-bugs-list mailing list