This PR starts trying to change what it looks like a remnant of Python 2: d.has_key(k) -> k in d
But I still can't run this example after this :(
Can you help me fix it?
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/villares/.vscode-oss/extensions/ms-python.python-2020.8.105369/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module>
cli.main()
File "/home/villares/.vscode-oss/extensions/ms-python.python-2020.8.105369/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/home/villares/.vscode-oss/extensions/ms-python.python-2020.8.105369/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 267, in run_file
runpy.run_path(options.target, run_name=compat.force_str("__main__"))
File "/usr/lib/python3.8/runpy.py", line 263, in run_path
return _run_module_code(code, init_globals, run_name,
File "/usr/lib/python3.8/runpy.py", line 96, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/media/villares/VolumeD/GitHub/pyplasm/resources/examples/ballorganizer.py", line 1, in <module>
from pyplasm import *
File "/home/villares/.local/lib/python3.8/site-packages/pyplasm/__init__.py", line 8, in <module>
from .fenvs import *
File "/home/villares/.local/lib/python3.8/site-packages/pyplasm/fenvs.py", line 1918, in <module>
DODECAHEDRON = build_DODECAHEDRON()
File "/home/villares/.local/lib/python3.8/site-packages/pyplasm/fenvs.py", line 1910, in build_DODECAHEDRON
return S([1, 2, 3])([a, a, a])(STRUCT([
File "/home/villares/.local/lib/python3.8/site-packages/pyplasm/fenvs.py", line 1120, in <lambda>
return lambda pol: SCALE2(axis,values,pol)
File "/home/villares/.local/lib/python3.8/site-packages/pyplasm/fenvs.py", line 1117, in SCALE2
vs = Vecf([1 for x in range(dim+1)]);vs.set(0,0.0)
File "/home/villares/.local/lib/python3.8/site-packages/pyplasm/fenvs.py", line 22, in <lambda>
__range2__ = lambda *arg : list(__range3__(map(int,*arg)))
File "/home/villares/.local/lib/python3.8/site-packages/pyplasm/fenvs.py", line 11, in <lambda>
__map2__ = lambda func, *iterable: list(__map3__(func, *iterable))
TypeError: 'int' object is not iterable
Hi @scrgiorgio!
This PR starts trying to change what it looks like a remnant of Python 2:
d.has_key(k)
->k in d
But I still can't run this example after this :(
Can you help me fix it?