X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/b625efee35009ec66e13c5f54dd3b70b77f803d1..47c8d1e9ed56336f1497f72d2b06a4ef32b6dd63:/pymin/seqtools.py?ds=inline diff --git a/pymin/seqtools.py b/pymin/seqtools.py index 4a6338a..14941af 100644 --- a/pymin/seqtools.py +++ b/pymin/seqtools.py @@ -48,6 +48,9 @@ class Sequence: def __repr__(self): return str(self) + def __cmp__(self, other): + return cmp(self.as_tuple(), other.as_tuple()) + def as_tuple(obj): r"""as_tuple(obj) -> tuple :: Convert objects to tuple.