From: Mike Bayer Date: Fri, 21 Apr 2006 03:53:01 +0000 (+0000) Subject: added extend() to historyarrayset X-Git-Tag: rel_0_1_7~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4058efa3466d8417319a47ee34d0bc7af29d31ac;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git added extend() to historyarrayset --- diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py index d4d5566997..23e828ef3b 100644 --- a/lib/sqlalchemy/util.py +++ b/lib/sqlalchemy/util.py @@ -383,6 +383,9 @@ class HistoryArraySet(UserList.UserList): def remove(self, item): if self._delrecord(item): self.data.remove(item) + def extend(self, item_list): + for item in item_list: + self.append(item) def __add__(self, other): raise NotImplementedError() def __radd__(self, other):