python 3.4 有人用吗? - V2EX
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
pc10201
V2EX    Python

python 3.4 有人用吗?

  •  
  •   pc10201 2014-02-21 21:15:24 +08:00 8061 次点击
    这是一个创建于 4251 天前的主题,其中的信息可能已经有所发展或是发生改变。
    看了一个python 3.4的更新和网上的评测,异步性能可以与nodejs一拼啊
    大家有用过的吗?
    基本上我用的模块都支持python 3,除了一个打包工具pyinstaller~
    16 条回复    1970-01-01 08:00:00 +08:00
    args
        1
    args  
       2014-02-21 23:34:14 +08:00 via Android
    3.4还没正式发布呢。把你说的评测打出来大家看看!?
    VYSE
        2
    VYSE  
       2014-02-22 02:27:59 +08:00   1
    http://docs.python.org/3.4/library/asyncio.html
    其实现在的很多异步方案(gevent,tornado,twist)性能已经很高了
    wwqgtxx
        3
    wwqgtxx  
       2014-02-22 07:10:29 +08:00 via Android
    还在用2.7呢
    RIcter
        4
    RIcter  
       2014-02-22 07:46:12 +08:00
    ...是时候转3.x了?一直在用2.7..
    @binux
    Shared
        5
    Shared  
       2014-02-22 08:47:04 +08:00
    正式发布了吗?我的所有项目都是用 3.3 写的,如果没什么显著的兼容问题就升上去好了
    pc10201
        6
    pc10201  
    OP
       2014-02-22 09:15:12 +08:00
    @args 不好意思,看错了,应该是python 3.3.4
    pc10201
        7
    pc10201  
    OP
       2014-02-22 09:18:46 +08:00
    thinkif
        8
    thinkif  
       2014-02-22 09:32:39 +08:00
    @pc10201
    是3.4, 你开始说的版本并没错
    asyncio也是其新特性之一

    不过现在还没正式发布, 一直都说可能会本月末发布
    binux
        9
    binux  
       2014-02-22 12:08:02 +08:00
    @RIcter 没有必须要换的特性啊,又不像C++11
    shiny
        10
    shiny  
       2014-02-22 12:16:39 +08:00
    更多性能问题是出在架构方式上的。用 python3一段时间后就后悔了,因为部署起来远没有 python2 方便。
    wuxqing
        11
    wuxqing  
       2014-02-22 20:09:12 +08:00
    @shiny 部署起来远没有 python2 方便,啥情况?
    shiny
        12
    shiny  
       2014-02-22 20:37:57 +08:00
    @wuxqing 不同包在不同系统下兼容性也不一样。而 python2 直接 apt-get 下就装好了……
    wuxqing
        13
    wuxqing  
       2014-02-22 22:32:05 +08:00
    @shiny 直接源代码编译一个python,指定存放目录,这样与系统的无关。我都是这样做的
    或者看看pyenv
    shiny
        14
    shiny  
       2014-02-23 12:45:32 +08:00
    @wuxqing 我也这么做,问题是有的python3的包在指定系统下编译不过去,python自身是没问题的。
    shiny
        15
    shiny  
       2014-02-23 12:55:05 +08:00
    @wuxqing 我用 python3.3 安装 pymongo 的时候提示 “error: in 'ext_modules' option (extension 'bson._cbson'), 'sources' must be present and must be a list of source filenames”。我从 debian换到ubuntu,问题是一样的;而之前在另一个debian系统上却什么问题也没有。

    python3.2却没有问题。这样导致 tornado 的return得用 raise 代替。花费了我一天时间,还影响心情。
    如果是python2,就算 requirements.txt不行,用apt-get install python-pymongo妥妥的。
    yakczh
        16
    yakczh  
       2014-02-26 10:03:36 +08:00
    pip install urllib2

    Downloading/unpacking urllib2
    Real name of requirement urllib2 is urllib3
    Could not find any downloads that satisfy the requirement urllib2
    Cleaning up...
    No distributions at all found for urllib2

    python2 -> urllib2
    python3 -> urllib3
    python4 ->urllib4
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5249 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 25ms UTC 05:44 PVG 13:44 LAX 22:44 JFK 01:44
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86