Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: