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 optional 'default' argument for .get() methods #11

Closed
wbolster opened this issue Jun 12, 2013 · 2 comments
Closed

Add optional 'default' argument for .get() methods #11

wbolster opened this issue Jun 12, 2013 · 2 comments
Assignees
Milestone

Comments

@wbolster
Copy link
Owner

Add a dict-like optional 'default' argument to the .get() calls on DB, Snapshot, and PrefixedDB.

@ghost ghost assigned wbolster Jun 17, 2013
wbolster added a commit that referenced this issue Jun 17, 2013
All .get() methods now accept an optional 'default' argument, just like
dict.get(). Also updated tests and docs.

Fixes issue #11.
@wbolster
Copy link
Owner Author

Fixed in 6bdb64f.

@wbolster
Copy link
Owner Author

This is included in the 0.4 release.

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

1 participant