[IPython-User] set and list in Notebook

caoimhinp kevin.gp@gmail....
Tue Jun 19 11:25:17 CDT 2012


Error found with list() in Notebook.  Also confirmed that the same occurs
from the ipython command line but not from the python 2.7 command line.

See output below:

In [26]:

dup_list = [1, 1, 3, 7, 3, 5, 8, 2, 4, 5]
print dup_list
now_a_set = set(dup_list)
print now_a_set
now_list = list(now_a_set) #this should work and doesn't
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
C:\Users\caoimhin\<ipython-input-26-033034ce7270> in <module>()
      3 now_a_set = set(dup_list)
      4 print now_a_set
----> 5 now_list = list(now_a_set) #this should work and doesn't

TypeError: 'list' object is not callable

[1, 1, 3, 7, 3, 5, 8, 2, 4, 5]
set([1, 2, 3, 4, 5, 7, 8])


--
View this message in context: http://python.6.n6.nabble.com/set-and-list-in-Notebook-tp4978882.html
Sent from the IPython - User mailing list archive at Nabble.com.


More information about the IPython-User mailing list