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: incompatible arguments in warning formatting for idle
Type: crash Stage:
Components: IDLE Versions: Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: gcoffin, gpolo
Priority: normal Keywords:

Created on 2008-08-27 12:29 by gcoffin, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg72023 - (view) Author: Guillaume Coffin (gcoffin) Date: 2008-08-27 12:29
In idle, the function idle_formatwarning_subproc overrides
warnings.formatwarning, however the latter in Python 2.6 is called from
warnings._show_warning with an additional "line" argument:

line 29, in _show_warning
file.write(formatwarning(message, category, filename, lineno, line))

whereas idle_formatwarning_subproc still only accepts 4 arguments. The
optional line argument should be added.
msg73183 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2008-09-13 13:39
Duplicate of issue3391
History
Date User Action Args
2022-04-11 14:56:38adminsetgithub: 47948
2008-09-13 13:39:55gpolosetstatus: open -> closed
resolution: duplicate
messages: + msg73183
nosy: + gpolo
2008-08-27 12:29:59gcoffincreate