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

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

  •  
  •   Monad · 2014-09-12 09:00:42 +08:00 · 2966 次点击
    这是一个创建于 3520 天前的主题,其中的信息可能已经有所发展或是发生改变。
    RT,现在使用gevent.joinall(jobs, raise_error = True)在这一层处理某些异常,但是greenlet会自动先把异常的traceback输出到stderr,而且这个异常只能在外层处理
    求解决方案~
    3 条回复    2014-09-12 14:33:41 +08:00
    Monad
        1
    Monad  
    OP
       2014-09-12 09:11:45 +08:00 via iPhone
    Greenlet=_=
    Catstyle
        2
    Catstyle  
       2014-09-12 09:49:59 +08:00
    Monad
        3
    Monad  
    OP
       2014-09-12 14:33:41 +08:00
    @Catstyle 多谢回复,但是还是不行,它会先写到stderr,然后再回调callback
    Python 2.7.6 gevent 1.0.1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2205 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:01 · PVG 18:01 · LAX 03:01 · JFK 06:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.