I think every Python code has seen PEP 8. The part that sticks out to me is:
Limit all lines to a maximum of 79 characters.
I'm sitting here on a widescreen monitor and coding right across the screen. I'm not coding in a terminal and don't plan on coding in a terminal. I therefor have no problems with character-line limits.
How many ...
From the mighty PEP 8:
[P]lease limit all lines to a maximum of 79 characters. For flowing long blocks of text (docstrings or comments), limiting the length to 72 characters is recommended.
When editing Python code in Vim, I set my textwidth to 79, and Vim automatically wraps long lines of Python code for me when I hit the charact...
At the end of python PEP8 I'm reading:
Don't compare boolean values to True or False using ==
Yes: if greeting:
No: if greeting == True:
Worse: if greeting is True:
I have no problem with that recommandation when the boolean is True, but it sounds strange when checking for False
If I want to know if variable greeting is False...