Python: How to deep copy a list of dictionaries
<p>I have a list whose each element is a dictionary.
Each element looks something like this</p>

<p><code>{'CELL': &lt;Cell SOW16007.2.AC7&gt;, 'COUNT': 2, 'NAMELIST': [], 'NAME': u'', 'LEVEL': u'SSE'}</code></p>

<p>I need to make a backup of this list.Normal assignment  or using shallow copy is not option i can use as i will making changes to the original.
But when i use deepcopy 
<code>backUpNames=deepcopy(oldNames)</code> 
I'm getting an error :</p>

<p><strong><code>TypeError: unhashable type: 'array.array'</code></strong></p>

<p><strong>What wrong am i doing here? How can i solve this?</strong></p>

<p>This is a not a duplicate question as I have already used deepcopy, problem i am facing is with the error deepcopy is throwing.</p>

<p><em>Minimal Code:</em></p>

<p>Using openpxl i iterate the sheet and append the values to a list </p>

<pre><code>wb=openpyxl.load_workbook(sys.argv[3],data_only=True)
_ts=wb.active 
oldNames.append({'NAME':_ts['G7'].value,'LEVEL':_ts['H7'].value,'CELL':_ts['F7'],'COUNT':0,'NAMELIST':[]})
backUpNames=deepcopy(oldNames)#error occurring here
</code></pre>

<p>Thank You</p>