|
|
Subscribe / Log in / New account

Python identifiers, PEP 8, and consistency

Python identifiers, PEP 8, and consistency

[Development] Posted Nov 30, 2021 22:14 UTC (Tue) by jake

While there are few rules on the names of variables, classes, functions, and so on (i.e. identifiers) in the Python language, there are some guidelines on how those things should be named. But, of course, those guidelines were not always followed in the standard library, especially in the early years of the project. A suggestion to add aliases to the standard library for identifiers that do not follow the guidelines seems highly unlikely to go anywhere, but it led to an interesting discussion on the python-ideas mailing list.

Full Story (comments: 12)


Copyright © 2021, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds