Changed documentation.

上级 374afcb4
...@@ -35,22 +35,23 @@ class Computed : """Memory has been allocated, contents are the owner's output." ...@@ -35,22 +35,23 @@ class Computed : """Memory has been allocated, contents are the owner's output."
############################ ############################
class Result(object): class Result(object):
"""Base class for storing L{Op} inputs and outputs """
Base class for storing L{Op} inputs and outputs
Attributes: Attributes:
_role - None or (owner, index) #or BrokenLink - _role - None or (owner, index) #or BrokenLink
_data - anything - _data - anything
state - one of (Empty, Allocated, Computed) - state - one of (Empty, Allocated, Computed)
name - string - name - string
Properties: Properties:
role - (rw) - role - (rw)
owner - (ro) - owner - (ro)
index - (ro) - index - (ro)
data - (rw) : calls data_filter when setting - data - (rw) : calls data_filter when setting
Abstract Methods: Abstract Methods:
data_filter - data_filter
""" """
__slots__ = ['_role', '_data', 'state', '_name', '_hash_id'] __slots__ = ['_role', '_data', 'state', '_name', '_hash_id']
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论