by ericingram · 14y ago · 0 comments
Anyone care to explain what these advanced patterns are useful for?
It's not intended to be used by newcomers. It's for people that write Flask extensions that should work in a wide range of environments. The word “advanced” is in there for a good reason.
That would make it a lot easier to maintain thread state, e.g. an open database connection, without having to use a singleton.