April 2019
Intermediate to advanced
646 pages
16h 48m
English
For constant global variables, an uppercase with an underscore is used. It informs the developer that the given variable represents a constant value.
For example, the doctest module provides a list of option flags and directives (http://docs.python.org/lib/doctest-options.html) that are small sentences, clearly defining what each option is intended for, for example:
from doctest import IGNORE_EXCEPTION_DETAIL from doctest import REPORT_ONLY_FIRST_FAILURE
These variable names seem rather long, but it is important to clearly describe ...