PEP 435 被接受啦! -- Adding an Enum type to the Python standard library - 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
banxi1988
V2EX    Python

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

  •  
  •   banxi1988
    banxi1988 2013-05-10 09:03:42 +08:00 3843 次点击
    这是一个创建于 4614 天前的主题,其中的信息可能已经有所发展或是发生改变。
    详见:
    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     Solana     2067 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 30ms UTC 00:31 PVG 08:31 LAX 16:31 JFK 19:31
    Do have faith in what you're doing.
    ubao msn 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