Skip to content

Instantly share code, notes, and snippets.

@jdiez17
Created December 20, 2013 11:21
Show Gist options
  • Save jdiez17/8053492 to your computer and use it in GitHub Desktop.
Save jdiez17/8053492 to your computer and use it in GitHub Desktop.
flags = {
'video': BitVector('a', 'b', 'c')
'image': BitVector('d', 'e')
}
----
def process_file:
processor, flags = detect()
f.processor = processor // the redis File has now loaded the appropiate BitVector
for flag, set in flags.items():
setattr(f, flag, set)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment