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

greetlet 抛异常时如何禁止向 stderr 输出 traceback?

  •  
  •   Monad · Sep 12, 2014 · 4026 views
    This topic created in 4443 days ago, the information mentioned may be changed or developed.
    RT,现在使用gevent.joinall(jobs, raise_error = True)在这一层处理某些异常,但是greenlet会自动先把异常的traceback输出到stderr,而且这个异常只能在外层处理
    求解决方案~
    3 replies  •  2014-09-12 14:33:41 +08:00
    Monad
    Monad
    OP
    Sep 12, 2014 via iPhone
    1
    Greenlet=_=
    Monad
    Monad
    OP
    Sep 12, 2014
    3
    @Catstyle 多谢回复,但是还是不行,它会先写到stderr,然后再回调callback
    Python 2.7.6 gevent 1.0.1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4761 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 77ms · UTC 03:28 · PVG 11:28 · LAX 19:28 · JFK 22:28
    ♥ Do have faith in what you're doing.