Convert to python3 native behaviour
In src/amuse/support/core.py, 2to3 changed
def isnumber(self, x):
return isinstance(x,types.IntType) or isinstance(x,types.FloatType)
to
def isnumber(self, x):
return isinstance(x,int) or isinstance(x,float)
about which @ipelupessy wrote
this one is tricky because the py23 converter has tried to maintain effectively python 2 behaviour, while the class mimicks a dict, so probably should use python3 dict conventions...
in any case nowadays there is a build-in ordered dict, unfortunately it behaves not exactly the same
Also in src/amuse/datamodel/base.py (line 627) 2to3 may have been overly careful.
And src/amuse/datamodel/incode_storage.py, line 665
And src/amuse/datamodel/particles.py line 284
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.
keep open and safe for some dedicated time for such issues
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.