[issue10220] Make generator state easier to introspect

Nick Coghlan report at bugs.python.org
Sun Nov 21 04:46:31 CET 2010


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Committed in r86633.

I added the missing docs changes, and tweaked the tests a little bit:
- added a helper method to retrieve the generator state in the test case
- this allowed test_running to be simplified a bit
- added an explicit test for the CREATED->CLOSED case
- renamed the test functions to match the existing idiom in test_inspect

----------
resolution:  -> accepted
stage: patch review -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10220>
_______________________________________


More information about the Python-bugs-list mailing list