[New-bugs-announce] [issue3698] incompatible arguments in warning formatting for idle

Guillaume Coffin report at bugs.python.org
Wed Aug 27 14:30:00 CEST 2008


New submission from Guillaume Coffin <guillaumecoffin at gmail.com>:

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.

----------
components: IDLE
messages: 72023
nosy: gcoffin
severity: normal
status: open
title: incompatible arguments in warning formatting for idle
type: crash
versions: Python 2.6

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


More information about the New-bugs-announce mailing list