Created
August 26, 2012 17:42
-
-
Save michelp/3481923 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> try: | |
... s = gevent.spawn(lambda: 1/0).join() | |
... except ZeroDivisionError: | |
... print 'boop' | |
... | |
Traceback (most recent call last): | |
File "/home/michel/dev/sb/local/lib/python2.7/site-packages/gevent-0.13.7-py2.7-linux-i686.egg/gevent/greenlet.py", line 390, in run | |
result = self._run(*self.args, **self.kwargs) | |
File "<stdin>", line 2, in <lambda> | |
ZeroDivisionError: integer division or modulo by zero | |
<Greenlet at 0xb753e11cL: <function <lambda> at 0xb753179c>> failed with ZeroDivisionError | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment