We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
def get_all(map, **defaults): return {key: map.get(key, default) for key, default in defaults.items()}
found this to be handy e.g. when extracting data from query parameters, flags or similar
very concise way to normalize an input dict by extracting only the keys you are interested in, and defaulting and missing keys
The text was updated successfully, but these errors were encountered:
I like it. Not sure about the name, but it is an elegant solution to a common problem.
Sorry, something went wrong.
I just noticed there is no pull request. Are you planning on submitting one?
would you like to get your name in the contributors? :-) please feel free
No branches or pull requests
found this to be handy e.g. when extracting data from query parameters, flags or similar
very concise way to normalize an input dict by extracting only the keys you are interested in, and defaulting and missing keys
The text was updated successfully, but these errors were encountered: