Skip to content

Instantly share code, notes, and snippets.

@cjhanks
Last active December 10, 2015 20:38
Show Gist options
  • Save cjhanks/4489579 to your computer and use it in GitHub Desktop.
Save cjhanks/4489579 to your computer and use it in GitHub Desktop.
Key checking
exclusion_set = set(('input', 'output')) - set(data_i)
{>
(> if exclusion_set:
raise RuntimeError('missing keys: %s' % str(exclusion_set))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment