-2
I have a code that tests several combinations that are generated, but I have a memory error problem. I think the cause of this is that the dictionary gets too big to be processed, so I thought the solution might be to test the current list and at the same time remove the old one but I don’t know some command that fits with this situation. I’m new to Python
#gera a lista/dicionário
for subset in genComb:
permsList.append(subset)
#testa se o item da lista é igual a uma variavel que é definida no inicio
while desco != senha:
desco = str(permsList[num]).replace("'", '')
desco = desco.replace(",", '')
desco = desco.replace(" ", '')
desco = desco.replace("(", '')
desco = desco.replace(")", '')
num += 1
what memory error is giving?
– Tmilitino
line 20, in passwords permsList.append(subset) Memoryerror
– ciber579