Skip to content

Commit

Permalink
Generalise seq to n arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
batterseapower committed Dec 6, 2009
1 parent 7bfcad1 commit 2c5ba0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pinyin/utils.py
Expand Up @@ -381,8 +381,8 @@ def splitat(what, n):
raise ValueError("You cannot splitat at a point later than the end of the string")
return what[0:n], what[n:]

def seq(x, y):
return y()
def seq(*args):
return args[-1]()

def inplacefilter(pred, list):
for i in range(len(list), 0, -1):
Expand Down

0 comments on commit 2c5ba0e

Please sign in to comment.