[issue4043] Warnings in IDLE raise TypeError (such as attempting to import deprecated modules)

Craig Holmquist report at bugs.python.org
Sun Oct 5 00:45:13 CEST 2008


Craig Holmquist <craigholm at gmail.com> added the comment:

Actually, it looks like ANY warning will raise this error in IDLE.  For
example:

>>> import warnings
>>> warnings.warn('blah blah')

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    warnings.warn('blah blah')
  File "C:\Python26\Lib\warnings.py", line 29, in _show_warning
    file.write(formatwarning(message, category, filename, lineno, line))
TypeError: idle_formatwarning_subproc() takes exactly 4 arguments (5 given)

----------
title: Attempting to import deprecated modules in IDLE raises TypeError -> Warnings in IDLE raise TypeError (such as attempting to import deprecated modules)

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


More information about the Python-bugs-list mailing list