pybloomfiltermmap3
pybloomfiltermmap3 copied to clipboard
Add context manager support
[todo] we should add __enter__
and __exit__
methods to the BloomFilter
class. So we can use the context manager
patterns.
This would let us do:
with pybloomfilter.BloomFilter(...) as bf:
bf.add(test_data)
_Originally posted by @prashnts in https://github.com/prashnts/pybloomfiltermmap3/pull/14#discussion_r349123995