Home
last modified time | relevance | path

Searched refs:getclosurevars (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_inspect.py1479 self.assertEqual(inspect.getclosurevars(f(_arg)), expected)
1494 self.assertEqual(inspect.getclosurevars(f(_arg)), expected)
1509 self.assertEqual(inspect.getclosurevars(C().f(_arg)), expected)
1514 return inspect.getclosurevars(f).nonlocals
1552 self.assertEqual(inspect.getclosurevars(lambda: True), _empty)
1553 self.assertEqual(inspect.getclosurevars(foo), _empty)
1557 self.assertRaises(TypeError, inspect.getclosurevars, 1)
1558 self.assertRaises(TypeError, inspect.getclosurevars, list)
1559 self.assertRaises(TypeError, inspect.getclosurevars, {})
1571 self.assertEqual(inspect.getclosurevars(f), expected)
[all …]
/external/python/cpython3/Lib/
Dinspect.py1554 def getclosurevars(func): function
/external/python/cpython3/Doc/library/
Dinspect.rst1089 .. function:: getclosurevars(func)
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1461 A new :func:`~inspect.getclosurevars` function has been added. This function
/external/python/cpython3/Misc/
DHISTORY7236 - Issue #13062: Added inspect.getclosurevars to simplify testing stateful