New submission from Robert Schuppenies <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue3391> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com