Closed ltalirz closed 5 years ago
thanks, this looks good.
if param not in list(self.param_guess.keys()):
just out of curiosity, why was this change necessary? it works for me with and without the list()
encapsulating self.param_guess.keys()
.
just out of curiosity, why was this change necessary?
I believe the reason is that dict.keys()
returns an iterable in python3, while it returns a list in python2.
For the in
operator in an if
statement this shouldn't be a problem, though, so python-modernize
was probably just over-cautious.