Open jbrockmendel opened 7 years ago
I expected that after bf.clear_all() calling len(bf) would give 0. It looks like it isn't being re-set.
>>> bf = pybloomfilter.BloomFilter(100, .01) >>> silent = bf.add('foo') >>> len(bf) 1 >>> bf.clear_all() >>> len(bf) 1
I'm getting this for both in-memory and file-based filters, on Ubuntu and OSX. Python 2.7 in each case.
I've confirmed this issue exists in pybloomfiltermmap3 as well. See https://github.com/prashnts/pybloomfiltermmap3/issues/27
I expected that after bf.clear_all() calling len(bf) would give 0. It looks like it isn't being re-set.
I'm getting this for both in-memory and file-based filters, on Ubuntu and OSX. Python 2.7 in each case.