Skip to content
Snippets Groups Projects

WIP: Revamp the type system

Closed Markus Holzer requested to merge holzer/pystencils:TypeSystem into master
Viewing commit 74183b43
Show latest version
2 files
+ 6
2
Preferences
Compare changes
Files
2
+ 4
2
@@ -72,9 +72,10 @@ def assumptions_from_dtype(dtype):
# noinspection PyPep8Naming
class address_of(sp.Function):
# TODO: ask Martin
# DONE: ask Martin
# TODO: documentation
# TODO: move function to `functions.py`
# this is '&' in C
is_Atom = True
def __new__(cls, arg):
@@ -542,7 +543,8 @@ if int(sympy_version[0]) * 100 + int(sympy_version[1]) >= 109:
class Type(sp.Atom):
# TODO: why is our type system dependent on sympy???
# TODO: ask Martin
# DONE: ask Martin
# TODO: inherits from sp.Atom because of cast function (and maybe others)
def __new__(cls, *args, **kwargs):
return sp.Basic.__new__(cls)