Closed saimn closed 5 years ago
It seems that the dict()
constructor changed in Python 3.7. A pragmatic solution would be to create the dict from an iterator, i.e. replace repr(dict(self))
with repr(dict(iter(self)))
. However, I still don't understand fully why it fails -- it looks like because Python is doing Duck Typing here and assumes cpl.ParameterList
is a dict
, while it should use it as an ordinary iterable.
Thanks!
Hi Ole, Any chance that you could make a new release with this fix ? This is a blocking issue for people using my reduction package on Python 3.7. Thanks
Ah, sorry; I uploaded the fixed version now to pypi.
Many thanks!
Printing these attributes with Python 3.7 raise a
KeyError
(it seems that Python tries to find a.keys()
method):And the same for
recipe.calib
.