Re: Getting function and args from generator objects

2008-11-05 Thread Terry Reedy
Rui Jorge Rei wrote: I have been searching for a way to fetch the originating function object from a generator. Futile, I believe. I would also like to get all the arguments and keyword arguments that were used when calling the function that created the generator. The arguments to a genera

Getting function and args from generator objects

2008-11-05 Thread Rui Jorge Rei
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 dat