3 ms·
I agree on that. The magical globals are also my biggest problem with flask. Other than that, it's a very solid framework that obviously has had lots of thought
by Svenstaro 10y ago
I agree on that. The magical globals are also my biggest problem with flask. Other than that, it's a very solid framework that obviously has had lots of thought go into it.
- m_mueller 10y agoI think this is just a design choice to avoid confusion between request / session parameters in the view functions versus path parameters. It's quite nice that you can just do @route("/<post_id>") def my_view(post_id): .... never having to register anything and just decorating your functions with these path decorators gets you started really really fast. That's how a flask hello world is just 6 LOC and `python ./my_server.py`.