Ticket #209 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

ipy_completers.py not compatible with Python 2.3 due to lack of global set()

Reported by: abonet Assigned to: vivainio
Priority: normal Milestone:
Component: ipython Version:
Severity: normal Keywords:
Cc:

Description

The Extensions/ipy_completers.py module fails on Python 2.3 to tab-complete on the 'import' statement due to the expectation of a global set() function. This problem can be easily fixed (and has been in other IPython modules) by use of the following construct:

        try:
            set
        except:
            from sets import Set as set

In addition to ipy_completers.py, the following modules also appear to be in need of the same treatment. I discovered these by just looking at the source code and have not tried to confirm actual failures:

Extensions/igrid.py Extensions/ipy_remote_completer.py Extensions/ipy_traits_completer.py genutils.py

Change History

01/15/08 08:33:00 changed by vivainio

  • status changed from new to assigned.
  • owner changed from fperez to vivainio.

01/16/08 09:27:16 changed by vivainio

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in r2937