提交 82aa9d87 authored 作者: Olivier Breuleux's avatar Olivier Breuleux

small fixes

上级 dbc1b288
...@@ -12,7 +12,7 @@ from graph import \ ...@@ -12,7 +12,7 @@ from graph import \
Apply, Result, Constant, Value, view_roots Apply, Result, Constant, Value, view_roots
from link import \ from link import \
Linker, LocalLinker, PerformLinker, WrapLinker, Profiler Filter, Linker, LocalLinker, PerformLinker, WrapLinker, Profiler
from op import \ from op import \
Op Op
......
...@@ -108,7 +108,7 @@ class Linker(object): ...@@ -108,7 +108,7 @@ class Linker(object):
class Filter(object): class Filter(object):
def __init__(self, r, storage, readonly = False, strict = False, trace = ()): def __init__(self, r, storage, readonly = False, strict = False):
self.r = r self.r = r
self.type = r.type self.type = r.type
self.storage = storage self.storage = storage
...@@ -127,6 +127,7 @@ class Filter(object): ...@@ -127,6 +127,7 @@ class Filter(object):
except: except:
raise_with_op(self.r) raise_with_op(self.r)
data = property(__get, __set) data = property(__get, __set)
value = property(__get, __set)
def __str__(self): def __str__(self):
return "<" + str(self.storage[0]) + ">" return "<" + str(self.storage[0]) + ">"
def __repr__(self): def __repr__(self):
......
...@@ -49,6 +49,9 @@ class Type(object2): ...@@ -49,6 +49,9 @@ class Type(object2):
""" """
raise AbstractFunctionError() raise AbstractFunctionError()
def c_init(self, name, sub):
raise AbstractFunctionError()
def c_extract(self, name, sub): def c_extract(self, name, sub):
""" """
The code returned from this function must be templated using The code returned from this function must be templated using
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论