summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-01-30 01:01:22 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-01-30 01:01:22 +0000
commitd8204ea92abe4b74d99549b89260c616f82e9dc5 (patch)
tree1b74ed61aaed34c43708771b0832c6da6a705dd2 /lib/sqlalchemy/util.py
parent6f7af7017449fd869594bd06b149061e54d21f08 (diff)
downloadsqlalchemy-d8204ea92abe4b74d99549b89260c616f82e9dc5.tar.gz
further work on insuring clear_mappers() really works. assignmapper identified
as a much trickier thing to clean out. added a unit test so that if any new collections get introduced we are still testing.
Diffstat (limited to 'lib/sqlalchemy/util.py')
-rw-r--r--lib/sqlalchemy/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py
index 706630918..54b1afa9f 100644
--- a/lib/sqlalchemy/util.py
+++ b/lib/sqlalchemy/util.py
@@ -49,6 +49,10 @@ def reversed(seq):
class ArgSingleton(type):
instances = {}
+ def dispose_static(self, *args):
+ hashkey = (self, args)
+ #if hashkey in ArgSingleton.instances:
+ del ArgSingleton.instances[hashkey]
def __call__(self, *args):
hashkey = (self, args)
try: