Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2014 18:17
What would you like to do?
helper function to create Django choices
def doubles(iterable):
"""Helper function that return a decoupled iterator"""
return zip(iterable, iterable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment