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

Python 之父准备在 Python 中引入类型注解

  •  
  •   caizixian ·
    caizixian · Aug 17, 2014 · 4919 views
    This topic created in 4461 days ago, the information mentioned may be changed or developed.
    14 replies  •  2014-08-18 13:34:08 +08:00
    judasnow
    judasnow
    Aug 17, 2014
    1
    不知道2有没有戏(估计没戏)。
    caizixian
    caizixian
    OP
    Aug 17, 2014
    2
    @judasnow 真估计没戏,2走的是小版本号,几乎就是在修bug,enhancement都在3上面做了
    roricon
    roricon
    Aug 17, 2014❤️1
    3
    很早之前就说过,2以后不会再添加新的feature了吧。
    rcmerci
    rcmerci
    Aug 17, 2014
    4
    2应该不会加了- -
    bombless
    bombless
    Aug 17, 2014❤️1
    5
    垠神是不是有新帖要发了

    加吧,多加点有用的东西让我有动力抛弃2
    est
    est
    Aug 17, 2014
    6
    这个去年就在PEP里吼了。
    rcmerci
    rcmerci
    Aug 17, 2014
    7
    @bombless 跟垠神什么关系呢?
    zonyitoo
    zonyitoo
    Aug 17, 2014
    8
    文章里不是说这个feature不会集成在Interpreter里面么
    fasling
    fasling
    Aug 17, 2014
    9
    类型注解是啥。。。。
    kavinyao
    kavinyao
    Aug 18, 2014
    10
    已经实现了啊: http://ideone.com/gPvU83

    加入function annotation只是给type checking增加了可能性,还有其他用途,详见: http://legacy.python.org/dev/peps/pep-3107/#use-cases
    bombless
    bombless
    Aug 18, 2014
    11
    @rcmerci pysonar
    rcmerci
    rcmerci
    Aug 18, 2014
    12
    @bombless 哦,对对
    eriale
    eriale
    Aug 18, 2014
    13
    为什么都觉得加type是好事呢?这样不是增加了写代码的约束吗?会不会增加开发的工作量?
    weyou
    weyou
    Aug 18, 2014
    14
    此举应该可以增加pyhon的performance
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2872 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 13:17 · PVG 21:17 · LAX 05:17 · JFK 08:17
    ♥ Do have faith in what you're doing.