Commit 9847a50a authored by Denis Bilenko's avatar Denis Bilenko

add a few comments

parent b334569f
...@@ -221,9 +221,14 @@ class Greenlet(greenlet): ...@@ -221,9 +221,14 @@ class Greenlet(greenlet):
self._exception = args[1] self._exception = args[1]
try: try:
try: try:
# Even though the greenlet is not yet started, we calling throw() here
# so that its 'dead' attribute becomes True
return greenlet.throw(self, *args) return greenlet.throw(self, *args)
except: except:
pass # traceback for this is useless # since this function is called from the Hub, which is the parent of *greenlet*
# the above statement will re-reraise here whatever we've thrown in it
# this traceback is useless, so we silent it
pass
finally: finally:
if self._links and self._notifier is None: if self._links and self._notifier is None:
self._notifier = core.active_event(self._notify_links) self._notifier = core.active_event(self._notify_links)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment