Question about coding style. What is the recommended way to assign the attributes of a flag class to a name, that is, Trueor attributes False. The styles I can think of are as follows:
class MyClass:
def my_method(self):
self.request = False
class MyClass:
def my_method(self):
self.is_request = False
class MyClass:
def my_method(self):
self.request_flag = False
PEP8 does not seem to give a firm recommendation. Is there a canonical way to do this?
Bernd source
share