推荐学习书目
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 · 3687 views
    This topic created in 4286 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
        1
    Monad  
    OP
       Sep 12, 2014 via iPhone
    Greenlet=_=
    Catstyle
        2
    Catstyle  
       Sep 12, 2014
    Monad
        3
    Monad  
    OP
       Sep 12, 2014
    @Catstyle 多谢回复,但是还是不行,它会先写到stderr,然后再回调callback
    Python 2.7.6 gevent 1.0.1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2895 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:45 · PVG 13:45 · LAX 22:45 · JFK 01:45
    ♥ Do have faith in what you're doing.