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.

Author craigh
Recipients craigh
Date 2008-10-04.22:30:07
SpamBayes Score 1.788203e-11
Marked as misclassified No
Message-id <1223159409.57.0.545310219567.issue4043@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 2.6, attempting to import depecated modules in IDLE raises a
TypeError exception.  I verified this with sets, mimify, and MimeWriter.
 Here's the output for sets:

>>> import sets

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    import sets
  File "C:\Python26\Lib\sets.py", line 85, in <module>
    stacklevel=2)
  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)

The other modules give a similar trace.

Normally, I wouldn't consider this a serious issue, but there are some
major packages out there that still use deprecated modules such as
these.  For example, MySQLdb 1.2.2 and SQLAlchemy 4.7p1 import the sets
module so they can't be used at all in IDLE.
History
Date User Action Args
2008-10-04 22:30:09craighsetrecipients: + craigh
2008-10-04 22:30:09craighsetmessageid: <1223159409.57.0.545310219567.issue4043@psf.upfronthosting.co.za>
2008-10-04 22:30:08craighlinkissue4043 messages
2008-10-04 22:30:07craighcreate