From 2c5ba0e1e33be6c72f2311b5f8e86d79e3032b27 Mon Sep 17 00:00:00 2001 From: Max Bolingbroke Date: Sun, 6 Dec 2009 00:52:59 +0000 Subject: [PATCH] Generalise seq to n arguments --- pinyin/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinyin/utils.py b/pinyin/utils.py index 29e605b..ec6802a 100644 --- a/pinyin/utils.py +++ b/pinyin/utils.py @@ -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):