Skip to content

Instantly share code, notes, and snippets.

@jdrake
Created December 15, 2011 17:58
Show Gist options
  • Select an option

  • Save jdrake/1482096 to your computer and use it in GitHub Desktop.

Select an option

Save jdrake/1482096 to your computer and use it in GitHub Desktop.
Python list comprehension
run_list = [run
for run in run_list
if playermatch_id in [player.id for player in run.players]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment