提交 43cb24af authored 作者: Frederic Bastien's avatar Frederic Bastien

Add stack trace to Constant Variable

上级 90a1a0c5
......@@ -547,6 +547,7 @@ class Constant(Variable):
def __init__(self, type, data, name=None):
Variable.__init__(self, type, None, None, name)
self.data = type.filter(data)
utils.add_tag_trace(self)
def equals(self, other):
# this does what __eq__ should do, but Variable and Apply should always be hashable by id
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论