Keep getting MemoryError while calling copy.deepcopy()
As the title tells, the detail is: There is a dictionary to be deepcopied. it has 100 key-value pairs. every value is a list of 200000 float numbers. I'm perform deepcopy to everyone of the value like below:
Code:
curr_di_in_a = {}
for key,v in to_be_copy.items():
curr_di_in_a[key] = copy.deepcopy(v)
This process will be in a loop of 3 times. And an MemoryError occurs after 2 times looped.
It seems...