Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_inspect.py1166 self.assertEqual(inspect.getclosurevars(f(_arg)), expected)
1181 self.assertEqual(inspect.getclosurevars(f(_arg)), expected)
1196 self.assertEqual(inspect.getclosurevars(C().f(_arg)), expected)
1201 return inspect.getclosurevars(f).nonlocals
1239 self.assertEqual(inspect.getclosurevars(lambda: True), _empty)
1240 self.assertEqual(inspect.getclosurevars(foo), _empty)
1244 self.assertRaises(TypeError, inspect.getclosurevars, 1)
1245 self.assertRaises(TypeError, inspect.getclosurevars, list)
1246 self.assertRaises(TypeError, inspect.getclosurevars, {})
1258 self.assertEqual(inspect.getclosurevars(f), expected)
[all …]
/external/python/cpython3/Lib/
Dinspect.py1389 def getclosurevars(func): function
/external/python/cpython3/Doc/library/
Dinspect.rst1023 .. 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