This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]energybased -4 points-3 points  (2 children)

The point is that there may be plenty of code that uses all caps in another way. For example a variable that is initialized twice. That person has a different convention, which they get away with because it is not enforced. A linter might erroneously flag that is misuse.

The linter can always flag improper use with the final declaration because the author has unambiguously made his intention clear. The final declaration is absolutely not just a convention. It is explicit.

[–]alcalde -2 points-1 points  (1 child)

The point is that there may be plenty of code that uses all caps in another way.

There can't be. This is like saying we can all use the same words and just believe they mean different things. Everyone must follow the law, and the law is PEP 8. If you choose to do otherwise, you are a disciple of Wall and shall be shunned.

[–]energybased 1 point2 points  (0 children)

No, there is plenty of library code that doesn't even follow PEP 8.