コード例 #1
0
ファイル: test_ssort.py プロジェクト: jean/zope.sequencesort
 def __cmp__(self, other):
     return cmp(self._spam, other._spam)
コード例 #2
0
ファイル: test_ssort.py プロジェクト: jean/zope.sequencesort
 def myCmp(s1, s2):
     return -cmp(s1, s2)