Skip to content

Instantly share code, notes, and snippets.

@joechrysler
Created July 30, 2013 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joechrysler/6115528 to your computer and use it in GitHub Desktop.
Save joechrysler/6115528 to your computer and use it in GitHub Desktop.
PEP8 Line Breaks
# In our codebase, we do a lot of this:
if some_really_long_boolean
and another_really_long_boolean
and a_third_really_long_boolean:
print "Yehaw!"
# PEP8 says we should probably be writing thusly
if some_really_long_boolean and
another_really_long_boolean and
a_third_really_long_boolean:
print "Yehaw!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment