I'm following Miguel Grinberg's Flask Megatutorial. He defines the configuration class of the app as:
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
What is te meaning of object
? why is it passed to the classs? to my understanding, passing an argument when defining a class means inheritance so, why is Config
inheriting form object
and in what other cases should I do the same?