Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Added default value for named parameters, checks for parameter values, reporting for errors and fixed segmentation fault when object creation fails #60

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

martinthomas
Copy link

No description provided.

Added default values for named parameters so that we aren’t given
uninitialized junk.
Added simple parameter checking (capacity must be 1 or more,
error_range must be less than 1)
Added new exception type to be used when reporting errors
Added check for existing filter in dealloc.
@ploxiln
Copy link
Contributor

ploxiln commented Jan 9, 2014

awesome stuff, thanks! we've been neglecting this for a while (and don't have a lot of experience with python c modules) so this is really appreciated.

We should get around to validating and merging this soon-ish, but also #35, which as you can see has languished for quite a while.

Removed extraneous forward declaration.
Updated load_dabloom to have default values for named parameters.
Check values for sanity (no negative capacity etc).
@martinthomas
Copy link
Author

You are welcome. I will work on updating load_dabloom and check it passes
testing .. probably tonight.

On Thu, Jan 9, 2014 at 2:38 PM, Pierce Lopez [email protected]:

awesome stuff, thanks! we've been neglecting this for a while (and don't
have a lot of experience with python c modules) so this is really
appreciated.

We should get around to validating and merging this soon-ish, but also #35#35,
which as you can see has languished for quite a while.


Reply to this email directly or view it on GitHubhttps://github.com//pull/60#issuecomment-31973556
.

ploxiln pushed a commit to ploxiln/dablooms that referenced this pull request Dec 15, 2024
 * add default values for named parameters
 * add simple parameter checking
 * add new exception type to be used when reporting errors
 * add check for existing filter in dealloc

from bitly#60
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants