Nick Coghlan <ncogh...@gmail.com> added the comment: On Thu, Oct 28, 2010 at 10:55 PM, Antoine Pitrou <rep...@bugs.python.org> wrote: > > Antoine Pitrou <pit...@free.fr> added the comment: > > Is it CPython-specific?
The states are not CPython-specific (they're logical states of the underlying generator), but I don't know if other implementations expose generator and frame details in the same way (all the more reason to put this in inspect - other implementations can provide the information without needing to exactly mimic gi_frame and f_lasti). > Does "currently executing" also include "currently closing"? "Currently executing" means the frame is being evaluated in a Python thread (the thread running it may be suspended in a multi-threaded environment, but the frame itself is in the middle of doing something, which may include processing a thrown in GeneratorExit) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10220> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com