TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Flask 2.0.0 has been merged into master

150 点作者 tpfour大约 4 年前

7 条评论

chirau大约 4 年前
In case anyone is interested in the major changes in 2.0.x:<p><a href="https:&#x2F;&#x2F;flask.palletsprojects.com&#x2F;en&#x2F;master&#x2F;changes&#x2F;" rel="nofollow">https:&#x2F;&#x2F;flask.palletsprojects.com&#x2F;en&#x2F;master&#x2F;changes&#x2F;</a>
评论 #27125581 未加载
评论 #27125634 未加载
nerdbaggy大约 4 年前
I have moved most of my stuff to FastAPI. It’s so much more enjoyable than flask. <a href="https:&#x2F;&#x2F;fastapi.tiangolo.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fastapi.tiangolo.com&#x2F;</a>
评论 #27126064 未加载
评论 #27125585 未加载
评论 #27125521 未加载
评论 #27125421 未加载
评论 #27125431 未加载
评论 #27126613 未加载
评论 #27125428 未加载
liquidise大约 4 年前
&gt; Drop support for Python 2<p>Python 3 released on &#x27;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.<p>On a more related note, props to devs&#x2F;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.
评论 #27125693 未加载
rastapasta42大约 4 年前
I am disappointed this release does not introduce any functionality similar to the Flask-Classful project.<p>I find built-in MethodViews very limited and unable to capture context.<p>Furthermore, MethodViews force you to artificially split endpoints between multiple classes when functionality better belongs in a single class.<p><a href="https:&#x2F;&#x2F;flask-classful.teracy.org&#x2F;#using-custom-routes" rel="nofollow">https:&#x2F;&#x2F;flask-classful.teracy.org&#x2F;#using-custom-routes</a>
whalesalad大约 4 年前
This is huge. (Serious!) <a href="https:&#x2F;&#x2F;github.com&#x2F;pallets&#x2F;flask&#x2F;pull&#x2F;3907" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pallets&#x2F;flask&#x2F;pull&#x2F;3907</a><p><pre><code> Add route decorators for common HTTP methods. For example, @app.post(&quot;&#x2F;login&quot;) is a shortcut for @app.route(&quot;&#x2F;login&quot;, methods=[&quot;POST&quot;]).</code></pre>
评论 #27125619 未加载
评论 #27125622 未加载
lettergram大约 4 年前
Honestly, I thought flask was mostly just in maintenance mode. Glad to see it progress!
评论 #27125578 未加载
systemvoltage大约 4 年前
&gt; Add route decorators for common HTTP methods. For example, @app.post(&quot;&#x2F;login&quot;) is a shortcut for @app.route(&quot;&#x2F;login&quot;, methods=[&quot;POST&quot;]). #3907<p>Why? By default, it’s GET if you don’t specify a method. But now with this change, for special routes such as “&#x2F;login” it’s POST. IMO these kinds of things make for “gotcha” moments. Just keep defaults simple without special exceptions.
评论 #27128295 未加载
评论 #27130632 未加载