Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unnecessary underscore suffix for many arguments and attributes #234
Thanks, @wbolster . This is something I'd like to consider the next time we do a major refactoring of the library (perhaps for the next major release of the language).
I was initially opposed to having attributes with the same name as Python builtins (particularly ones that actually get used in the same code, such as
I'm curious to hear what other people think. Does anyone know of examples (popular Python libraries) where the "trailing _" strategy is vs. is not used?
Regardless, I don't think we'll want to change it until a major release. The backward compatibility issues would be enormous.
Thanks. Trailing underscores are a necessary evil for things like
That said, do you have any other "big picture" ideas for a future version?
Re. example code: all Pythonic code has nice APIs of course! :) For example, it's very common to have a