Searched refs:getclosurevars (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_inspect.py | 1479 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/ |
D | inspect.py | 1554 def getclosurevars(func): function
|
/external/python/cpython3/Doc/library/ |
D | inspect.rst | 1089 .. 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
|