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
n0th1ng
V2EX  ›  Python

Python 3.5 beta released

  •  
  •   n0th1ng · 2015-05-26 12:18:20 +08:00 · 2482 次点击
    这是一个创建于 3260 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://www.python.org/downloads/release/python-350b1/
    http://www.reddit.com/r/programming/comments/376bi1/python_35_beta_released/

    async/await, type hinting, matrix multiplication, extended support for bytes/bytearray, support for virtual environments
    12 条回复    2015-05-27 08:58:39 +08:00
    ericls
        1
    ericls  
       2015-05-26 12:23:23 +08:00 via Android
    可以写 async 了么? 爽啊
    fy
        2
    fy  
       2015-05-26 13:57:50 +08:00
    我希望这跟版本尽快被发行版和厂商跟进,而type hinting最好能backport到python2。

    另外最近越来越不耐烦2的编码问题,还有3的yield写法真的很爽。我觉得py2渐渐也就无可留恋,不过希望3重新支持一些细节让迁移容易一点(比如 ur'' 语法,3支持了u''而不支持ur''让我觉得很奇怪,再比如print '' 虽然有点算是陋规但是确实很方便。至于urllib2和3?谁管你啊,正常人用的都是requests)
    echo1937
        3
    echo1937  
       2015-05-26 14:27:26 +08:00
    @fy 好像有一些东西不会backport了。
    pijingzhanji
        4
    pijingzhanji  
       2015-05-26 14:29:20 +08:00
    @fy 只要python 3 不支持 print '',就坚决不用Python 3,调试的时候少打两个括号比什么语法改进都重要
    lixiang101
        5
    lixiang101  
       2015-05-26 17:36:01 +08:00
    @pijingzhanji 求你别用。。。
    evolighting
        6
    evolighting  
       2015-05-26 18:09:12 +08:00
    @pijingzhanji
    然而调试不是用断点啥的么......自从会用一点IDE之后...print就很少用来调试了...
    chengzhoukun
        7
    chengzhoukun  
       2015-05-26 18:13:09 +08:00 via Android   ❤️ 1
    @evolighting Python八荣八耻:以打印日志为荣,以单步跟踪为耻
    chengzhoukun
        8
    chengzhoukun  
       2015-05-26 18:15:10 +08:00 via Android
    不过我觉得print多打俩括号也没啥问题
    ShiehShieh
        9
    ShiehShieh  
       2015-05-26 18:25:31 +08:00
    写python让我开心的事情之一就是不用依赖IDE。=3=
    的确,print也不喜欢多打那两个括号,一口气打完是最过瘾的了。
    cedared
        10
    cedared  
       2015-05-26 18:28:20 +08:00
    同不想打括号
    junnplus
        11
    junnplus  
       2015-05-27 04:28:37 +08:00
    括号是什么东西
    LeoQ
        12
    LeoQ  
       2015-05-27 08:58:39 +08:00
    0 0 我一开始就学的3,我觉得3的print挺好的啊,一句话可以在一个句子里看到了

    ``` python
    print("运行时间为",time.clock()-start)
    ```
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5245 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:37 · PVG 17:37 · LAX 02:37 · JFK 05:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.