V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yoa1q7y
V2EX  ›  Python

目前对 Python3 支持比较好的 WEB 框架有哪些呢?

  •  
  •   yoa1q7y · 2015-12-14 15:48:36 +08:00 · 4509 次点击
    这是一个创建于 3070 天前的主题,其中的信息可能已经有所发展或是发生改变。
    flask 貌似部分支持,还不全..
    20 条回复    2015-12-15 03:33:58 +08:00
    pynix
        1
    pynix  
       2015-12-14 16:08:13 +08:00
    酱狗
    pythonee
        2
    pythonee  
       2015-12-14 16:12:50 +08:00
    django
    recall704
        3
    recall704  
       2015-12-14 16:14:43 +08:00
    django
    zenliver
        4
    zenliver  
       2015-12-14 17:10:13 +08:00
    asyncio
    windfarer
        5
    windfarer  
       2015-12-14 17:22:18 +08:00
    怎样算全啊
    calon
        6
    calon  
       2015-12-14 17:24:57 +08:00
    Django 的支持应该挺好的,至少官方文档说没问题,不过我没用 3 弄过。
    下次有机会可以试试在 3 上面跑的。
    倒是有些 Django 的插件还只支持到 2 ,如果没有替代品的话就得自己想办法了。
    fy
        7
    fy  
       2015-12-14 17:52:58 +08:00
    Tornado

    另外 Flask 支持的还不全吗?
    LZ 看的那篇文档是老的吧?
    housne
        8
    housne  
       2015-12-14 17:54:24 +08:00
    tornado 已经支持 async await 了
    yoa1q7y
        9
    yoa1q7y  
    OP
       2015-12-14 18:00:20 +08:00
    @windfarer 据说好多插件还不支持呢
    yoa1q7y
        10
    yoa1q7y  
    OP
       2015-12-14 18:01:57 +08:00
    @fy http://flask.pocoo.org/docs/0.10/advanced_foreword/#the-status-of-python-3

    "Currently the Python community is in the process of improving libraries to support the new iteration of the Python programming language. While the situation is greatly improving there are still some issues that make it hard for users to switch over to Python 3 just now."
    yoa1q7y
        11
    yoa1q7y  
    OP
       2015-12-14 18:04:21 +08:00
    @calon v2 里好多人说学 Python3 ,那么这样看来,即使学了,好多东西也不能用啊
    est
        12
    est  
       2015-12-14 18:09:29 +08:00
    为了兴趣学习下 py3 还是可以的。为了情怀学习下也可以。

    工程应用,找工作,还是算了吧
    wph95
        13
    wph95  
       2015-12-14 18:14:21 +08:00
    @yoa1q7y
    Django 1.8 开始就转用 python3
    并没有遇到什么问题,常见的库都支持 python3
    Django 明年底的新版就开始不支持 Python3
    echo1937
        14
    echo1937  
       2015-12-14 18:15:34 +08:00
    @wph95 最后一句是不是错了?
    janxin
        15
    janxin  
       2015-12-14 19:12:40 +08:00 via iPad
    django , aiohttp , tornado ,考虑到 flask 的版本还不发,也算 ok
    janxin
        16
    janxin  
       2015-12-14 19:15:33 +08:00 via iPad
    @echo1937 最后一句貌似怎么都不对, django 放弃 py2 是在 2017 年…
    worldcao
        17
    worldcao  
       2015-12-14 19:25:41 +08:00
    django/flask
    raptor
        18
    raptor  
       2015-12-14 20:26:01 +08:00
    目前在用 flask ,还没碰到不支持的情况。
    bottle 在 py3 下也还正常。
    wph95
        19
    wph95  
       2015-12-15 00:37:04 +08:00
    @echo1937
    。。。 犯了个愚蠢的错误
    开始不支持 Python2.。。
    fy
        20
    fy  
       2015-12-15 03:33:58 +08:00
    @yoa1q7y

    这些插件并不是 flask 本体啊? Flask 的组件已经并没有明确说什么不兼容了。
    再说这已经不是几年前, py3 的支持几乎是标配。也就科学计算那边支持的慢一些。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5553 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:18 · PVG 17:18 · LAX 02:18 · JFK 05:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.