A common set of naming rules can be applied on variables, methods, functions, and properties. The names of classes and modules play a very important role in namespace construction and greatly affect code readability. This section contains a miniguide that will help you to define meaningful and readable names for your code elements.
The naming guide
Using the has/is prefixes for Boolean elements
When an element holds a Boolean value you can mark it with is and/or has syntax to make the variable more readable. In the following example, is_connected and has_cache are such identifiers that hold Boolean states of the DB class instances:
class DB: is_connected = False has_cache = False