Home
last modified time | relevance | path

Searched refs:getgeneratorstate (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_generators.py323 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_RUNNING)
326 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_RUNNING)
337 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_CREATED)
341 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_SUSPENDED)
345 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_SUSPENDED)
349 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_CLOSED)
Dtest_inspect.py1774 return inspect.getgeneratorstate(self.generator)
/external/python/cpython3/Doc/whatsnew/
D3.2.rst1880 :func:`~inspect.getgeneratorstate` to easily identify the current state of a
1883 >>> from inspect import getgeneratorstate
1887 >>> getgeneratorstate(g)
1891 >>> getgeneratorstate(g)
1894 >>> getgeneratorstate(g)
/external/python/cpython3/Doc/library/
Dinspect.rst1236 terminated. :func:`getgeneratorstate` allows the current state of a
1239 .. function:: getgeneratorstate(generator)
/external/python/cpython3/Lib/
Dinspect.py1619 def getgeneratorstate(generator): function
/external/python/cpython3/Misc/
DHISTORY11373 - Issue #10220: Added inspect.getgeneratorstate. Initial patch by Rodolpho