Open CMCDragonkai opened 5 years ago
I have found that wrapping sqlitedict in an class with a destructor doesn't seem to work.
Here's just a snippet of my code:
from sqlitedict import SqliteDict class Store(): def __init__(self, path): self._map = SqliteDict(path, autocommit=False) def __del__(self): self._map.close() store = Store('tmp/ext')
Run this with python ./script.py. And it just hangs.
python ./script.py
Instead I have to use close(force=True) for it actually properly close.
close(force=True)
I have found that wrapping sqlitedict in an class with a destructor doesn't seem to work.
Here's just a snippet of my code:
Run this with
python ./script.py
. And it just hangs.Instead I have to use
close(force=True)
for it actually properly close.