Skip to content

Instantly share code, notes, and snippets.

@PaulGuo
Created August 14, 2012 15:07
Show Gist options
  • Save PaulGuo/3350139 to your computer and use it in GitHub Desktop.
Save PaulGuo/3350139 to your computer and use it in GitHub Desktop.
Python tuple to list
def to_list(t):
return [i if not isinstance(i,tuple) else to_list(i) for i in t]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment