<div dir="ltr"><div><div>Hi,</div></div><div><br></div><div>Have you tried printing the list which is passed onto the set. The items in the list passed should be hashable and possibly there are objects which are not hashable.</div>
</div><br><div class="gmail_quote">On Sun, Jul 29, 2012 at 2:30 PM,  <span dir="ltr"><<a href="mailto:subhabangalore@gmail.com" target="_blank">subhabangalore@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sunday, July 29, 2012 2:57:18 PM UTC+5:30, (unknown) wrote:<br>
> Dear Group,<br>
><br>
><br>
><br>
> I was trying to convert the list to a set, with the following code:<br>
><br>
><br>
><br>
> set1=set(list1)<br>
><br>
><br>
><br>
</div>Dear Peter,<br>
Thanks for the answer. But my list does not contain another list that is the issue. Intriguing. Thinking what to do.<br>
Regards,<br>
Subhabrata.<br>
<div class="HOEnZb"><div class="h5">> the code was running fine, but all on a sudden started to give the following error,<br>
><br>
><br>
><br>
> set1=set(list1)<br>
><br>
> TypeError: unhashable type: 'list'<br>
><br>
><br>
><br>
> please let me know how may I resolve.<br>
><br>
><br>
><br>
> And sometimes some good running program gives error all on a sudden with no parameter changed, how may I debug it?<br>
><br>
><br>
><br>
> Thanking You in Advance,<br>
><br>
><br>
><br>
> Regards,<br>
><br>
> Subhabrata Banerjee.<br>
<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><div><br></div><div><br></div>