Getting function and args from generator objects

Rui Jorge Rei rui.jorge.rei at googlemail.com
Wed Nov 5 12:39:52 EST 2008


Hi,

I have been searching for a way to fetch the originating function object
from a generator. I would also like to get all the arguments and keyword
arguments that were used when calling the function that created the
generator. I checked the inspect module, but it doesn't seem to provide that
data.
Is there any way to get this information from a generator object?
Thanks in advance.

-- 
Regards,
Rui Rei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081105/0b59a3c9/attachment.html>


More information about the Python-list mailing list