Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26194
| From | subhabangalore@gmail.com |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python Error |
| Date | 2012-07-29 07:36 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <35b4e1bf-0f99-4c9d-bd40-8f44ba100510@googlegroups.com> (permalink) |
| References | <81818a9c-60d3-48da-9345-0c0dfd5b25e7@googlegroups.com> |
On Sunday, July 29, 2012 2:57:18 PM UTC+5:30, (unknown) wrote: > Dear Group, > > > > I was trying to convert the list to a set, with the following code: > > > > set1=set(list1) > > > > the code was running fine, but all on a sudden started to give the following error, > > > > set1=set(list1) > > TypeError: unhashable type: 'list' > > > > please let me know how may I resolve. > > > > And sometimes some good running program gives error all on a sudden with no parameter changed, how may I debug it? > > > > Thanking You in Advance, > > > > Regards, > > Subhabrata Banerjee. Dear Group, Thank you for your kind time and reply. True as Steven pointed the error should be specific. I tested. Put comment mark before the set assignment, printed the list as Peter suggested, taken the print of the list, but no it is not my problem, as you suggested what is contained in the list, I am taking out the values and then assigning blank list and appending the processed values in the list. If this kind of problems happen, --rare but in my 6 yrs Python experience happened sometimes--then I take a new window, rewrite or copy the earlier code module by module, give a new method name--believe it or not--- works. Regards, Subhabrata.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python Error subhabangalore@gmail.com - 2012-07-29 02:27 -0700
Re: Python Error Peter Otten <__peter__@web.de> - 2012-07-29 13:08 +0200
Re: Python Error subhabangalore@gmail.com - 2012-07-29 05:30 -0700
Re: Python Error Thomas Jollans <t@jollybox.de> - 2012-07-29 14:45 +0200
Re: Python Error Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-29 14:53 +0100
Re: Python Error Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-29 14:01 +0000
Re: Python Error Emile van Sebille <emile@fenx.com> - 2012-07-29 07:42 -0700
Re: Python Error Roy Smith <roy@panix.com> - 2012-07-29 10:23 -0400
Re: Python Error subhabangalore@gmail.com - 2012-07-29 07:41 -0700
Re: Python Error Jürgen A. Erhard <jae@jaerhard.com> - 2012-07-29 15:57 +0200
Re: Python Error Duncan Booth <duncan.booth@invalid.invalid> - 2012-07-30 11:15 +0000
Re: Python Error subhabangalore@gmail.com - 2012-07-29 07:36 -0700
Re: Python Error Chris Angelico <rosuav@gmail.com> - 2012-07-30 01:12 +1000
csiph-web