[IPython-User] set and list in Notebook

Jon Olav Vik jonovik@gmail....
Tue Jun 19 11:33:48 CDT 2012


caoimhinp <kevin.gp <at> gmail.com> writes:

> 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: 'list' object is not callable

This works fine on my system (IPython 0.13beta, Python 2.7). Are you sure you 
haven't overwritten the name "list"? What does "print list" give you?




More information about the IPython-User mailing list