提交 06bf5a35 authored 作者: Tanjay94's avatar Tanjay94

Fixed str method in Op class.

上级 f359ff99
...@@ -583,7 +583,7 @@ class Op(utils.object2, PureOp, CLinkerOp): ...@@ -583,7 +583,7 @@ class Op(utils.object2, PureOp, CLinkerOp):
def __str__(self): def __str__(self):
if hasattr(self, 'props'): if hasattr(self, 'props'):
return self.__class__.__name__ return "%s{%s}" % (self.__class__.__name__, ", ".join(str(p) for p in self.props()))
else: else:
return super(Op, self).__str__() return super(Op, self).__str__()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论