[Ipython-tickets] [IPython] #209: ipy_completers.py not compatible with Python 2.3 due to lack of global set()

IPython ipython-tickets@scipy....
Mon Jan 14 10:59:01 CST 2008


#209: ipy_completers.py not compatible with Python 2.3 due to lack of global
set()
---------------------+------------------------------------------------------
 Reporter:  abonet   |       Owner:  fperez
     Type:  defect   |      Status:  new   
 Priority:  normal   |   Milestone:        
Component:  ipython  |     Version:        
 Severity:  normal   |    Keywords:        
---------------------+------------------------------------------------------
 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

-- 
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/209>
IPython <http://ipython.scipy.org>
The IPython interactive Python system


More information about the Ipython-tickets mailing list