[Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS

Paul Moore p.f.moore at gmail.com
Wed Jan 30 06:42:43 EST 2019


On Fri, 4 Jan 2019 at 19:03, Abe Dillon <abedillon at gmail.com> wrote:
> Currently PEP-8 prescribes all caps for constants and uses the all cap variable "FILES" as an example in a different section. It also appears to be the defacto-standard for enums (based on the documentation)
>
> I don't think it's necessary to make any breaking changes. Just pep-8 and (of less importance) spurious documentation examples.

If you don't like the recommendation, just don't follow it. It's not
like it's set in stone or anything. Personally, I like it and I'm glad
it's used on the projects I work on. But you do what suits you.

As it's unlikely that the stdlib will stop using caps for constants,
changing PEP 8 isn't appropriate (see the first line of the PEP -
"This document gives coding conventions for the Python code comprising
the standard library in the main Python distribution").

Paul


More information about the Python-ideas mailing list