Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread MRAB
On 2015-08-30 17:31, kbtyo wrote: On Saturday, August 29, 2015 at 10:50:18 PM UTC-4, MRAB wrote: On 2015-08-30 03:05, kbtyo wrote: I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): [{'AccountNumber': N, 'Amount': '0', 'Answer': '12:00:00

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
In a message of Sun, 30 Aug 2015 10:34:18 -0700, kbtyo writes: @Laura - thank you. I observed this earlier. Please see my reply to Ben and MRAB for the most up to date status. For the more general problem of 'how do I parse my XML' download and use this package.

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread kbtyo
On Sunday, August 30, 2015 at 1:16:12 PM UTC-4, MRAB wrote: On 2015-08-30 17:31, kbtyo wrote: On Saturday, August 29, 2015 at 10:50:18 PM UTC-4, MRAB wrote: On 2015-08-30 03:05, kbtyo wrote: I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list):

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
When you get TypeError: unhashable type: 'dict' it almost always means that you are trying to use a dict as a key for a different dict. Python 2.7.10 (default, Jul 1 2015, 10:54:53) [GCC 4.9.2] on linux2 Type help, copyright, credits or license for more information. d={1:'one', 2:'two',

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread kbtyo
On Saturday, August 29, 2015 at 11:04:53 PM UTC-4, Ben Finney wrote: kbtyo writes: I am using Jupyter Notebook and Python 3.4. Thank you for saying so! It is not always required, but when it matters, this information is important to state up front. I have a data structure in the

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread kbtyo
On Saturday, August 29, 2015 at 10:50:18 PM UTC-4, MRAB wrote: On 2015-08-30 03:05, kbtyo wrote: I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): [{'AccountNumber': N, 'Amount': '0', 'Answer': '12:00:00 PM', 'ID': None,

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-29 Thread MRAB
On 2015-08-30 03:05, kbtyo wrote: I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): [{'AccountNumber': N, 'Amount': '0', 'Answer': '12:00:00 PM', 'ID': None, 'Type': 'WriteLetters', 'Amount': '10', {'AccountNumber': Y,

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-29 Thread Mark Lawrence
On 30/08/2015 03:05, kbtyo wrote: I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): [{'AccountNumber': N, 'Amount': '0', 'Answer': '12:00:00 PM', 'ID': None, 'Type': 'WriteLetters', 'Amount': '10', {'AccountNumber': Y,

TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-29 Thread kbtyo
I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): [{'AccountNumber': N, 'Amount': '0', 'Answer': '12:00:00 PM', 'ID': None, 'Type': 'WriteLetters', 'Amount': '10', {'AccountNumber': Y, 'Amount': '0', 'Answer': ' 12:00:00 PM',

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-29 Thread Ben Finney
kbtyo ahlusar.ahluwa...@gmail.com writes: I am using Jupyter Notebook and Python 3.4. Thank you for saying so! It is not always required, but when it matters, this information is important to state up front. I have a data structure in the format, (type list): [{'AccountNumber': N,