4 ms·
> PEP 8 is the universal style guide for Python code. > If you aren't following it, you should have good reasons beyond "I just don't like the way that looks."
by yeukhon 12y ago
> PEP 8 is the universal style guide for Python code.
> If you aren't following it, you should have good reasons beyond "I just don't like the way that looks."
Core dev and Guido have said many times PEP 8 are not holy.
See https://mail.python.org/pipermail/python-dev/2010-November/105681.html https://mail.python.org/pipermail/python-dev/2010-November/1...
In essence, a "stupid reason" like "I don't like it" is a valid reason not to adopt PEP 8.
In fact, I don't like the PEP 8 recommendation on docstring. I like Google's docstring (aka napoleon in Sphinx contrib-module).
http://sphinxcontrib-napoleon.readthedocs.org/en/latest/example_google.html http://sphinxcontrib-napoleon.readthedocs.org/en/latest/exam...