Searched refs:getclosurevars (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_inspect.py | 1166 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/ |
D | inspect.py | 1389 def getclosurevars(func): function
|
/external/python/cpython3/Doc/library/ |
D | inspect.rst | 1023 .. function:: getclosurevars(func)
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.3.rst | 1461 A new :func:`~inspect.getclosurevars` function has been added. This function
|
/external/python/cpython3/Misc/ |
D | HISTORY | 7236 - Issue #13062: Added inspect.getclosurevars to simplify testing stateful
|