From: Mike Bayer Date: Thu, 26 Jan 2006 00:24:54 +0000 (+0000) Subject: added __repr__ to HashSet X-Git-Tag: rel_0_1_0~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=159ef4ccf3b37b358c74e4b523bea42b7092486a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git added __repr__ to HashSet --- diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py index 8592dd98d2..9e93e995a5 100644 --- a/lib/sqlalchemy/util.py +++ b/lib/sqlalchemy/util.py @@ -190,6 +190,8 @@ class HashSet(object): del self.map[key] def __getitem__(self, key): return self.map[key] + def __repr__(self): + return repr(self.map.values()) class HistoryArraySet(UserList.UserList): """extends a UserList to provide unique-set functionality as well as history-aware