Commit 0480edce authored by blitzmann's avatar blitzmann

Clarify need for WeakSet

parent 76c724c7
...@@ -413,9 +413,10 @@ class AlchemyEncoder(json.JSONEncoder): ...@@ -413,9 +413,10 @@ class AlchemyEncoder(json.JSONEncoder):
class CalibreDB(): class CalibreDB():
_init = False _init = False
engine = None engine = None
log = None # todo: ??? this isn't used, and even then, not sure if it's supposed to be per session or what
config = None config = None
session_factory = None session_factory = None
# This is a WeakSet so that references here don't keep other CalibreDB
# instances alive once they reach the end of their respective scopes
instances = WeakSet() instances = WeakSet()
def __init__(self): def __init__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment