本文整理汇总了Python中Wrappers.hSeqIterator方法的典型用法代码示例。如果您正苦于以下问题:Python Wrappers.hSeqIterator方法的具体用法?Python Wrappers.hSeqIterator怎么用?Python Wrappers.hSeqIterator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wrappers
的用法示例。
在下文中一共展示了Wrappers.hSeqIterator方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: follow
# 需要导入模块: import Wrappers [as 别名]
# 或者: from Wrappers import hSeqIterator [as 别名]
def follow(self,shapeList, finish=True):
"a generator that returns a list of moves that navigates the list of shapes"
"if finish is true, any pending move will be finished. If false,"
"pending linear moves are left in case next moves duplicate them"
log.debug("Following Shape");
for s in Wrappers.hSeqIterator(shapeList):
for m in self.followShape(s):
yield m;
#flush any last remaining move
if finish:
t= self._fetchPendingMove();
if t:
yield t;