@riffm  `setdefault()` call mutates dictionary. Usually it's OK, but in theory it could cause undesired effects. That's why I suggested copying before updating.