First of all I am trying to update my code from Python 2 to Python 3. I am trying to update a Dictionary, I am updating the name of the keys, and poping out that keys that I don't use. I am getting an error: dictionary changed size during iteration
Code Example:
for k, v in self.v_signals.items():
for jj in self.On_Signal_Option["levels_run"]:
new_key = str(k) + str(jj)
self.v_signals[new_key] = self.v_signals[k]
self.v_signals.pop(k, None)