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: Keywords:

Created on 2008-08-27 12:29 by gcoffin, last changed 2008-09-13 13:39 by gpolo.

Messages
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) Date: 2008-09-13 13:39
Duplicate of issue3391
History
Date User Action Args
2008-09-13 13:39:55gpolosetstatus: open -> closed
resolution: duplicate
messages: + msg73183
nosy: + gpolo
2008-08-27 12:29:59gcoffincreate