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

Add context manager support #29

Open
mizvyt opened this issue Jan 14, 2020 · 0 comments
Open

Add context manager support #29

mizvyt opened this issue Jan 14, 2020 · 0 comments
Milestone

Comments

@mizvyt
Copy link
Contributor

mizvyt commented Jan 14, 2020

[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 #14 (comment)

@prashnts prashnts added this to the next milestone Aug 23, 2020
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