3 ms·
As pointed out to me by a friend that's forced to use the style guide at their new job, the Pet Peeves[1] section is somewhat ironic. It talks about avoiding e
by kbenson 13y ago
As pointed out to me by a friend that's forced to use the style guide at their new job, the Pet Peeves[1] section is somewhat ironic. It talks about avoiding extraneous whitespace (such as when lining up equal signs in variable declarations) and then proceeds to use extraneous whitespace in the Yes/No tags preceding code blocks. Apparently it does nothing for code readability, but it's useful for the information on the page...
[1]: http://www.python.org/dev/peps/pep-0008/#pet-peeves
- Buttons840 13y agoThe Yes/No tags are not code. The PEP is not advocating their style for all text documents.
- kbenson 13y agoObviously. Yet they are both presenting lists of items, with identifiers and values. I find expressing examples of a rule using a method the rule expressly outlines not to use (even if in a different language), ironic.
- mhurron 13y agoThe tags aren't code though so the style guide wouldn't apply there. In this case they're lined up for clarity as to the differences between the lines. /pedantic