Q:

python flask class definition syntax

In python classes are defined like this class ClassName:, but can anyone explain to me what this means class flask.Flask() in the flask documentation and what is a flask object. Thanks

A:

This is the documentation of the constructor of the class Flask in the module flask.  The documentation uses the syntax you'd usually use to instantiate a class rather than to define it.  The italic class only specifies that this is a class.
This is documentation, not source code!

