
Michael Kuron
authored
This commit makes the Python code backwards compatible down to Python 2.7. Previously it would only run on Python 3.5 and up. Problems fixed included: - `time.perf_counter()` doesn't exist - all classes need to be new-style - `functools.lru_cache` doesn't exist - only the last argument to a function call can be `*`-expanded - the `nonlocal` keyword doesn't exist - metaclasses are used with a different syntax - `yield from` doesn't exist - `tempdir.TemporaryDirectory` doesn't exist - iterators need a `next()` method
Forked from
pycodegen / pystencils
1470 commits behind the upstream repository.
Name | Last commit | Last update |
---|---|---|
backends | ||
cpu | ||
equationcollection | ||
gpucuda | ||
llvm | ||
__init__.py | ||
astnodes.py | ||
display_utils.py | ||
field.py | ||
finitedifferences.py | ||
slicing.py | ||
sympyextensions.py | ||
transformations.py | ||
types.py |