We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: