This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Idle uses old showwarning signature
Type: behavior Stage:
Components: IDLE Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: benjamin.peterson Nosy List: benjamin.peterson, brett.cannon, schuppenies
Priority: normal Keywords: patch

Created on 2008-07-17 09:51 by schuppenies, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
idle.patch schuppenies, 2008-07-17 09:51
verify.py schuppenies, 2008-07-17 09:53
Messages (2)
msg69879 - (view) Author: Robert Schuppenies (schuppenies) * (Python committer) Date: 2008-07-17 09:51
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.
msg74850 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-10-16 19:40
Thanks! Applied in r66922.
History
Date User Action Args
2022-04-11 14:56:36adminsetgithub: 47641
2008-10-16 19:40:28benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg74850
2008-10-16 16:17:04benjamin.petersonsetassignee: benjamin.peterson
nosy: + benjamin.peterson
2008-07-17 09:53:23schuppeniessetfiles: + verify.py
2008-07-17 09:51:53schuppeniescreate