Searched refs:getgeneratorstate (Results 1 – 6 of 6) sorted by relevance
323 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)
1774 return inspect.getgeneratorstate(self.generator)
1880 :func:`~inspect.getgeneratorstate` to easily identify the current state of a1883 >>> from inspect import getgeneratorstate1887 >>> getgeneratorstate(g)1891 >>> getgeneratorstate(g)1894 >>> getgeneratorstate(g)
1236 terminated. :func:`getgeneratorstate` allows the current state of a1239 .. function:: getgeneratorstate(generator)
1619 def getgeneratorstate(generator): function
11373 - Issue #10220: Added inspect.getgeneratorstate. Initial patch by Rodolpho