Skip to content

Instantly share code, notes, and snippets.

@pykong
Created November 18, 2017 14:50
Show Gist options
  • Save pykong/35a9fb79c7697c890b56059b0f0d63c3 to your computer and use it in GitHub Desktop.
Save pykong/35a9fb79c7697c890b56059b0f0d63c3 to your computer and use it in GitHub Desktop.
# Write this:
if (mark.a, mark.b) == (region.a, region.b):
...
# much cleaner than:
if mark.a == region.a and mark.b == region.b:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment