Python 3 的 WSGI 请求和响应包装器

发布于 2024-09-24 07:49:04 字数 553 浏览 3 评论 0 原文

Python 3 是否有 WSGI 请求和响应包装器?

WebOb 看起来不错(尽管有一些 批评),但它似乎是写在 Python <3. Werkzeug 似乎也是用 Python <3 编写的。

我应该为 Python 3 编写自己的请求和响应包装器吗?也许这是不可能的,因为 WSGI 似乎有点损坏在Python 3中。那么该怎么办呢?放弃Python 3,回到Python 2?

Are there WSGI request and response wrappers for Python 3?

WebOb looks nice (although there is some critique), but it seems to be written in Python <3. Werkzeug seems also to be written in Python <3.

Should I write my own request and response wrappers for Python 3? Maybe this would be impossible, since WSGI seems to be somewhat broken in Python 3. So what to do? Give up Python 3 and go back to Python 2?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

勿挽旧人 2024-10-01 07:49:04

我的建议:现在,Python 2.x 应该用于生产质量的东西。我知道,Python 3 在技术上非常有趣,但现在坚持使用 Python 2 更容易、更高效。

My recommendation: right now, Python 2.x should be used for production quality stuff. I know, Python 3 is technically very interesting, but right now sticking with Python 2 is MUCH easier and MUCH more productive.

清旖 2024-10-01 07:49:04

不,Python3 没有 WSGI。它是由于新的字符串类型而发生的。

No, there are not WSGI for Python3. It occurs because of new string types.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文