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

PEP 0492

  •  
  •   chengzhoukun · May 20, 2015 · 3968 views
    This topic created in 4001 days ago, the information mentioned may be changed or developed.
    HackNews上看到这篇文章:
    https://lwn.net/SubscriberLink/643786/9c0bd83dff0df3b8/
    感觉新的写法挺不错的,大家怎么看

    https://www.python.org/dev/peps/pep-0492/
    7 replies    2015-05-22 12:25:25 +08:00
    ericls
        1
    ericls  
       May 21, 2015
    很期待! 相当棒!
    arbipher
        2
    arbipher  
       May 21, 2015
    好巧,我今天也偶然打开了这个PEP。
    不过我在python上异步用的少。。。
    xiazi
        3
    xiazi  
       May 21, 2015
    一直不明白, 为什么不直接用greenlet
    fy
        4
    fy  
       May 21, 2015
    yield 难道还不够?这有什么用
    R4rvZ6agNVWr56V0
        5
    R4rvZ6agNVWr56V0  
       May 22, 2015
    nice!
    zzh161
        6
    zzh161  
       May 22, 2015
    跟C#的async/await类似吧
    RobberPhex
        7
    RobberPhex  
       May 22, 2015
    感觉async是要替换yield from啊,以后要写代码需要判断版本吧?小于3.4用三方库,3.4用asyncio,3.5用async。
    这代码还怎么写。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   782 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 21:21 · PVG 05:21 · LAX 14:21 · JFK 17:21
    ♥ Do have faith in what you're doing.