verterok / tritcask Goto Github PK
View Code? Open in Web Editor NEWYet another python, bitcask inspired, fast, log based key/value store
License: GNU General Public License v3.0
Yet another python, bitcask inspired, fast, log based key/value store
License: GNU General Public License v3.0
Tritcask is unable to iterate over TritcaskEntries as a StopIterator is raise within a generator.
With Python3.7+ and according to PEP 479 this is longer allowed.
A simple fix would be to replace StopIteration
Exception with a return
statement.
$ python3 -V
Python 3.7.4
$ python3 benchmark.py
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tritcask/tritcask.py", line 496, in iter_entries
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "benchmark.py", line 42, in <module>
db = tritcask.Tritcask(db_name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tritcask/tritcask.py", line 654, in __init__
self._build_keydir()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tritcask/tritcask.py", line 802, in _build_keydir
self._load_from_hint(data_file)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tritcask/tritcask.py", line 817, in _load_from_hint
for hint_entry in hint_file.iter_entries():
RuntimeError: generator raised StopIteration`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.