diff options
author | jerous <jerous@gmail.com> | 2008-06-19 20:16:19 +0200 |
---|---|---|
committer | jerous <jerous@gmail.com> | 2008-06-19 20:16:19 +0200 |
commit | ac0fd5b0b576ec65b30492b4c25d513dac0e173b (patch) | |
tree | 8eafe36187362917758e4e641ac77d52aa340b76 /misc.py | |
parent | 3397101a88d76b4dfe700df1323e1b1b5b35279b (diff) |
all random and repeat modes are implemented
Diffstat (limited to 'misc.py')
-rw-r--r-- | misc.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -18,6 +18,12 @@ def sec2min(secs): if sec<10:sec='0'+str(sec) return str(min)+':'+str(sec) +def numeric_compare(x, y): + if x>y: + return 1 + elif x==y: + return 0 + return -1 def unique(seq): """Retrieve list of unique elements.""" seen = [] |