本文整理汇总了Python中state.State.get_push方法的典型用法代码示例。如果您正苦于以下问题:Python State.get_push方法的具体用法?Python State.get_push怎么用?Python State.get_push使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类state.State
的用法示例。
在下文中一共展示了State.get_push方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: operative
# 需要导入模块: from state import State [as 别名]
# 或者: from state.State import get_push [as 别名]
def operative(self, data):
self._check(data, self._nextcheck)
try:
push, self._nextcheck = self._indata.pop(0)
if push is not None:
push += CRLF
return State.get_push(push=push)
except IndexError:
return State.get_final()
示例2: initial
# 需要导入模块: from state import State [as 别名]
# 或者: from state.State import get_push [as 别名]
def initial(self, data):
return State.get_push(terminator=CRLF)
示例3: operative
# 需要导入模块: from state import State [as 别名]
# 或者: from state.State import get_push [as 别名]
def operative(self, data):
if data:
return State.get_push(push=data+'\n')
else:
return State.get_final()
示例4: reply
# 需要导入模块: from state import State [as 别名]
# 或者: from state.State import get_push [as 别名]
def reply(message, terminator=None):
return State.get_push(message + CRLF, terminator)