Skip to content

Instantly share code, notes, and snippets.

@aaronmccall
Created July 10, 2012 22:51
Show Gist options
  • Select an option

  • Save aaronmccall/3086750 to your computer and use it in GitHub Desktop.

Select an option

Save aaronmccall/3086750 to your computer and use it in GitHub Desktop.
fastest way to prune empty strings from a python list
pruned_list = filter(None, list_of_strings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment