Skip to content
New issue

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

BloomFilter.__len__(item) misreports after BloomFilter.open(filename) #31

Open
235 opened this issue Jan 25, 2013 · 1 comment
Open

Comments

@235
Copy link
Contributor

235 commented Jan 25, 2013

It's a minor issue, alas, it requires changes to the file format which might be a hassle.

>> fruit = pybloomfilter.BloomFilter(100000, 0.1, '/tmp/words.bloom')
>> fruit.update(('apple', 'pear', 'orange', 'apple'))
>> len(fruit)
3
>> fruit.sync()

>> basket =  pybloomfilter.BloomFilter.open('/tmp/words.bloom')
>> 'orange' in basket
True
>> len(basket)
0
-- However, this should be 3.
@DYFeng
Copy link

DYFeng commented Mar 7, 2014

I meet the same problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants