提交 997fc864 authored 作者: lamblin's avatar lamblin

Merge pull request #1160 from nouiz/fix_init

Always define the name attribute to a default value.
...@@ -281,6 +281,7 @@ class Function(object): ...@@ -281,6 +281,7 @@ class Function(object):
self.maker = maker self.maker = maker
self.profile = None # reassigned in FunctionMaker.create self.profile = None # reassigned in FunctionMaker.create
self.trust_input = False # If True, we don't check the input parameter self.trust_input = False # If True, we don't check the input parameter
self.name = None
# We will be popping stuff off this `containers` object. It is a copy. # We will be popping stuff off this `containers` object. It is a copy.
containers = list(self.input_storage) containers = list(self.input_storage)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论