2 ms·
But then you have to explicitly pass the context to everything you call. Dynamic scoping would solve this problem (and similar problems, like dependency inject
by Ao7bei3s 11y ago
But then you have to explicitly pass the context to everything you call.
Dynamic scoping would solve this problem (and similar problems, like dependency injection), but Python doesn't have that.
Flasks way emulates it as well as possible.