Permalink
Browse files

Generalise seq to n arguments

  • Loading branch information...
1 parent 7bfcad1 commit 2c5ba0e1e33be6c72f2311b5f8e86d79e3032b27 @batterseapower batterseapower committed Dec 6, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 pinyin/utils.py
View
@@ -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):

0 comments on commit 2c5ba0e

Please sign in to comment.