提交 684f31f5 authored 作者: Frederic Bastien's avatar Frederic Bastien

print the optimizer in order.

上级 d7f099f6
......@@ -194,7 +194,12 @@ class SequenceDB(DB):
def print_summary(self, stream=sys.stdout):
print >> stream, "SequenceDB (id %i)"%id(self)
print >> stream, " position", self.__position__
positions = self.__position__.items()
def c(a,b):
return cmp(a[1],b[1])
positions.sort(c)
print >> stream, " position", positions
print >> stream, " names", self._names
print >> stream, " db", self.__db__
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论