Comment

Comment by musingsole

The Handlers implement behavior, sure. But from the perspective of the `app` object, the handler function objects are state. You can tell, because `app` is an instance of the Flask class and the Handlers are added to the instance by way of a function call.

So, Handlers are functions that "handle something", but they are also part of the app object's state, not its behavior.

parent musingsole 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton