推荐学习书目
› 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
hustlzp
V2EX  ›  Python

大家觉得几年内能够比较舒服地在Python3.3+下写Web应用?

  •  
  •   hustlzp · Aug 27, 2013 · 8282 views
    This topic created in 4831 days ago, the information mentioned may be changed or developed.
    目前貌似只有少数框架和库port到Python3了,其他的还是蛮缓慢。

    RT.
    22 replies  •  1970-01-01 08:00:00 +08:00
    Muninn
    Muninn
    Aug 27, 2013
    1
    今年已经有很多历史性的进步了
    明年应该差不多了
    yopming
    yopming
    Aug 27, 2013
    2
    框架可以用3了,比如Flask,但是Flask的插件略多,好多都不行...
    ushuz
    ushuz
    Aug 27, 2013
    3
    3.5 以后吧
    ushuz
    ushuz
    Aug 27, 2013
    4
    当初要是一点儿一点儿迁移,5年,怎么都迁移到3上了。
    kk71
    kk71
    Aug 27, 2013
    5
    django上可以了。
    flask感觉插件还没跟上,不过应该很快的。
    倒是觉得py3还不够稳定。比如3.2和3.3差别就比较明显
    hustlzp
    hustlzp
    OP
    Aug 27, 2013
    6
    @Muninn
    @yopming
    @ushuz
    @ushuz
    @kk71 恩,希望1年之后能够实现吧~
    fwee
    fwee
    Aug 27, 2013
    7
    等有4的时候
    hustlzp
    hustlzp
    OP
    Aug 27, 2013
    8
    @fwee 有道理,3出来用2,4出来用3,5出来用4...
    0bit
    0bit
    Aug 27, 2013❤️1
    9
    https://python3wos.appspot.com/

    等这个能达到150以上吧
    wwqgtxx
    wwqgtxx
    Aug 27, 2013 via Android
    10
    等呀等,等呀等
    detailyang
    detailyang
    Aug 27, 2013
    11
    不急 嘿嘿
    phuslu
    phuslu
    Aug 27, 2013
    12
    goagent 缩回到 python 2.7 了, 最主要的原因是移动平台还没有 python 3 系列的移植,第三方库也是一大原因。
    derek80
    derek80
    Aug 27, 2013
    13
    还是偶尔碰到只支持2.*的库。
    hustlzp
    hustlzp
    OP
    Aug 27, 2013
    14
    @wwqgtxx
    @detailyang 恩,现在完全没看3的特性,只看2.7就好。
    aggron
    aggron
    Aug 28, 2013
    15
    Web应用?现在就很方便用python3了,很多常用的库已经在使用six同时兼容python2和python3
    jianghu52
    jianghu52
    Aug 28, 2013
    16
    主要是python3 跟数据库之间的插件还不够好。我本来想用djngo1.5+python3的,后来发现连接数据库的插件不支持python3.最后还是djngo1.4+python2.7了
    wwqgtxx
    wwqgtxx
    Aug 28, 2013 via Android
    17
    各种类库不兼容,比如gevent
    yakczh
    yakczh
    Aug 28, 2013
    18
    easy_install web.py

    ...

    ImportError: No module named utils
    yakczh
    yakczh
    Aug 28, 2013
    19
    easy_install.exe utils
    ....

    ImportError: No module named db

    easy_install.exe db
    ...
    File "g:\Python32\lib\site-packages\setuptools\command\easy_install.py", line 1069, in run_setup
    run_setup(setup_script, args)
    File "g:\Python32\lib\site-packages\setuptools\sandbox.py", line 69, in run_setup
    lambda: execfile(
    File "g:\Python32\lib\site-packages\setuptools\sandbox.py", line 120, in run
    return func()
    File "g:\Python32\lib\site-packages\setuptools\sandbox.py", line 71, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
    File "g:\Python32\lib\site-packages\setuptools\compat.py", line 92, in execfile
    exec_(compile(source, fn, 'exec'), globs, locs)
    File "setup.py", line 14
    except IOError, e:
    ^
    SyntaxError: invalid syntax
    wwqgtxx
    wwqgtxx
    Aug 28, 2013 via Android
    20
    @yakczh 用pip试试?
    VYSE
    VYSE
    Aug 28, 2013
    21
    尝试切换到3,但发现除非废弃现有2的代码,不然两种之间切换想死的心都有。
    yakczh
    yakczh
    Aug 28, 2013
    22
    @wwqgtxx Downloading/unpacking antiorm (from db)
    Downloading antiorm-1.1.1.tar.gz (162kB): 162kB downloaded
    Running setup.py egg_info for package antiorm
    Traceback (most recent call last):
    File "<string>", line 16, in <module>
    File "d:\temp\pip_build\antiorm\setup.py", line 14
    except IOError, e:
    ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

    File "<string>", line 16, in <module>

    File "d:\temp\pip_build\antiorm\setup.py", line 14

    except IOError, e:

    ^

    SyntaxError: invalid syntax

    ----------------------------------------
    Cleaning up...
    Command python setup.py egg_info failed with error code 1 in d:\temp\pip_build_caizh\antiorm
    Storing complete log in C:\Users\xxx\pip\pip.log
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4353 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 08:32 · PVG 16:32 · LAX 00:32 · JFK 03:32
    ♥ Do have faith in what you're doing.