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

PEP 435 被接受啦! -- Adding an Enum type to the Python standard library

  •  
  •   banxi1988 ·
    banxi1988 · 2013-05-10 09:03:42 +08:00 · 3347 次点击
    这是一个创建于 4004 天前的主题,其中的信息可能已经有所发展或是发生改变。
    详见:
    http://www.python.org/dev/peps/pep-0435/

    这样以后我也可以很自然的在Python中使用枚举了。
    各位有什么看法。
    Guido (via python-list):
    "I have reviewed the latest version of PEP 435 and I see that it is
    very good. I hereby declare PEP 435 as Accepted. Congratulations go to
    Barry, Eli and Ethan for pulling it through one of the most thorough
    reviewing and bikeshedding processes any PEP has seen. Thanks to
    everyone else for the many review comments. It is a better PEP because
    of the reviews."
    5 条回复    1970-01-01 08:00:00 +08:00
    kernel1983
        1
    kernel1983  
       2013-05-10 15:46:52 +08:00
    省内存了

    切实的感受到python的性能在逐渐提升
    reorx
        2
    reorx  
       2013-05-10 20:16:46 +08:00
    的确是更好的常量的表示方式,用在各种协议的实现中再好不过了。
    lyklykkkkkkk
        3
    lyklykkkkkkk  
       2013-05-11 10:51:22 +08:00
    就像iOS终于加入了复制粘贴?
    banxi1988
        4
    banxi1988  
    OP
       2013-05-11 14:17:30 +08:00
    @lyklykkkkkkk 这个可不是,因为可以通过其他的方法来实现类似的功能。
    而ios中的复制粘贴的话,是无法通过其它方式来hack的。
    gully
        5
    gully  
       2013-06-02 12:36:04 +08:00
    为了加个enum, Python-Dev的邮件列表里面都吵翻天了 :)
    http://code.activestate.com/lists/python-dev/121615/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2939 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:14 · PVG 22:14 · LAX 07:14 · JFK 10:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.