Skip to content

Instantly share code, notes, and snippets.

@dcbriccetti
Created September 19, 2009 21:12
Show Gist options
  • Save dcbriccetti/189593 to your computer and use it in GitHub Desktop.
Save dcbriccetti/189593 to your computer and use it in GitHub Desktop.
# Does the Python community enjoy this type of thing as much as the Scala community?
[[gridPanel.add(self.checkBoxes[r][c]) for r in range(R)] for c in range(C)]
# Or should I split it into the more conventional:
for r in range(R):
for c in range(C):
gridPanel.add(self.checkBoxes[r][c])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment