diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-12-08 21:40:10 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-12-08 21:40:10 +0000 |
| commit | 33620a16fd0a701de4a0bc2148f210ba55e3c812 (patch) | |
| tree | 7e9ce83fe40595283cf2be94b1b0abbadc44fb97 /lib | |
| parent | 6d5786c1c23310603a5d73a59a1eb87596a008dc (diff) | |
| download | sqlalchemy-33620a16fd0a701de4a0bc2148f210ba55e3c812.tar.gz | |
cursors needs to be weak key
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/pool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/pool.py b/lib/sqlalchemy/pool.py index 68ab0be47..d13c83cac 100644 --- a/lib/sqlalchemy/pool.py +++ b/lib/sqlalchemy/pool.py @@ -187,7 +187,7 @@ class _ConnectionFairy(object): """proxies a DBAPI connection object and provides return-on-dereference support""" def __init__(self, pool): self._threadfairy = _ThreadFairy(self) - self._cursors = {} + self._cursors = weakref.WeakKeyDictionary() self.__pool = pool self.__counter = 0 try: |
