From 89a4750535ebaad9c5a0558bd14d177f553de5d8 Mon Sep 17 00:00:00 2001 From: arigo Date: Wed, 31 Jan 2007 00:29:45 +0100 Subject: [PATCH] [svn r37646] Wording, and missing attribute in the greenlet documentation. --HG-- branch : trunk --- py/doc/greenlet.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/py/doc/greenlet.txt b/py/doc/greenlet.txt index e87cd19d1..f4012b381 100644 --- a/py/doc/greenlet.txt +++ b/py/doc/greenlet.txt @@ -229,7 +229,7 @@ Dying greenlet sent to its parent. If ``run()`` terminates with an exception, the exception is propagated to its parent (unless it is a ``greenlet.GreenletExit`` exception, in which case the exception - object itself is sent to the parent). + object is caught and *returned* to the parent). Apart from the cases described above, the target greenlet normally receives the object as the return value of the call to ``switch()`` in @@ -263,6 +263,9 @@ Methods and attributes of greenlets ``g.gr_frame`` The current top frame, or None. +``g.dead`` + True if ``g`` is dead (i.e. it finished its execution). + ``bool(g)`` True if ``g`` is active, False if it is dead or not yet started.