by tpfour on 5/12/21, 12:13 AM with 53 comments
by chirau on 5/12/21, 12:33 AM
by nerdbaggy on 5/12/21, 12:47 AM
by liquidise on 5/12/21, 12:57 AM
Python 3 released on '08. Flask debuted a couple of years later in 2010, on Python 2. 11.5 years later Python 2 is nearly in the rearview. The history of the Python 3 release is surely an impressive one.
On a more related note, props to devs/contributors for this release. My experience with Flask was pop-up projects and never mission critical, but i always found it a joy to use and quite intuitive.
by rastapasta42 on 5/12/21, 1:18 AM
I find built-in MethodViews very limited and unable to capture context.
Furthermore, MethodViews force you to artificially split endpoints between multiple classes when functionality better belongs in a single class.
by whalesalad on 5/12/21, 1:18 AM
Add route decorators for common HTTP methods. For example,
@app.post("/login") is a shortcut for
@app.route("/login", methods=["POST"]).
by lettergram on 5/12/21, 12:47 AM
by systemvoltage on 5/12/21, 5:27 AM
Why? By default, it’s GET if you don’t specify a method. But now with this change, for special routes such as “/login” it’s POST. IMO these kinds of things make for “gotcha” moments. Just keep defaults simple without special exceptions.