I have created the following generator function:
>>> def file_readlines(filepath):
... f = open(filepath, 'r')
... for line in f:
... yield line
...
>>> gen=file_readlines(filepath)
>>> next(gen)
When I examine the methods of the generator it shows the following:
...'close', 'gi_code', 'gi_frame', 'gi_running', 'gi_yieldfrom', 'send', 'throw'`
throw, send, and close are documented in Python Expressions, and I imagine code and frame are similar to a stacktrace object, but what are gi_running and gi_yieldfrom? How are those used?