]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added __repr__ to HashSet
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 26 Jan 2006 00:24:54 +0000 (00:24 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 26 Jan 2006 00:24:54 +0000 (00:24 +0000)
lib/sqlalchemy/util.py

index 8592dd98d2f6ed481a2bb638a497e71efa53caa8..9e93e995a5eebc1238f9f7cf25d696aab7adc24f 100644 (file)
@@ -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