Commits

Mike Bayer committed 73413de

cursors needs to be weak key

  • Participants
  • Parent commits d0840d0

Comments (0)

Files changed (1)

File lib/sqlalchemy/pool.py

     """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: