Vladimir

37%
Flag icon
The single underscore prefix has no special meaning to the Python interpreter when used in attribute names, but it’s a very strong convention among Python programmers that you should not access such attributes from outside the class.8 It’s easy to respect the privacy of an object that marks its attributes with a single _, just as it’s easy respect the convention that variables in ALL_CAPS should be treated as constants.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview