V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · May 10, 2013 · 4038 views
    This topic created in 4748 days ago, the information mentioned may be changed or developed.
    详见:
    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 replies    1970-01-01 08:00:00 +08:00
    kernel1983
        1
    kernel1983  
       May 10, 2013
    省内存了

    切实的感受到python的性能在逐渐提升
    reorx
        2
    reorx  
       May 10, 2013
    的确是更好的常量的表示方式,用在各种协议的实现中再好不过了。
    lyklykkkkkkk
        3
    lyklykkkkkkk  
       May 11, 2013
    就像iOS终于加入了复制粘贴?
    banxi1988
        4
    banxi1988  
    OP
       May 11, 2013
    @lyklykkkkkkk 这个可不是,因为可以通过其他的方法来实现类似的功能。
    而ios中的复制粘贴的话,是无法通过其它方式来hack的。
    gully
        5
    gully  
       Jun 2, 2013
    为了加个enum, Python-Dev的邮件列表里面都吵翻天了 :)
    http://code.activestate.com/lists/python-dev/121615/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2898 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:29 · PVG 23:29 · LAX 08:29 · JFK 11:29
    ♥ Do have faith in what you're doing.