Home
last modified time | relevance | path

Searched refs:getattr_static (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_inspect.py1514 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1515 self.assertEqual(inspect.getattr_static(thing, 'x', None), Thing.x)
1517 inspect.getattr_static(thing, 'y')
1519 self.assertEqual(inspect.getattr_static(thing, 'y', 3), 3)
1528 self.assertEqual(inspect.getattr_static(something, 'x'), Thing.x)
1536 self.assertEqual(inspect.getattr_static(thing, 'x'), 3)
1538 self.assertEqual(inspect.getattr_static(thing, 'x'), 2)
1546 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1556 self.assertEqual(inspect.getattr_static(thing, 'x'), desc)
1562 self.assertEqual(inspect.getattr_static(Thing, 'x'), Thing.x)
[all …]
/external/python/cpython3/Doc/library/
Dinspect.rst1181 can be inconvenient. :func:`getattr_static` has the same signature as :func:`getattr`
1184 .. function:: getattr_static(obj, attr, default=None)
1201 :func:`getattr_static` does not resolve descriptors, for example slot descriptors or
1218 result = getattr_static(some_object, 'foo')
/external/python/cpython3/Lib/
Dpydoc.py961 if cl and inspect.getattr_static(cl, realname, []) is object:
1377 if cl and inspect.getattr_static(cl, realname, []) is object:
Dinspect.py1566 def getattr_static(obj, attr, default=_sentinel): function
/external/python/cpython3/Doc/whatsnew/
D3.2.rst1900 the :mod:`inspect` module has a new function, :func:`~inspect.getattr_static`.
1914 >>> inspect.getattr_static(a, 'f')
/external/python/cpython3/Misc/
DHISTORY8904 - Issue #11829: Fix code execution holes in inspect.getattr_static for
8925 - Issue #11813: Fix inspect.getattr_static for modules. Patch by Andreas
9952 - Issue #11133: fix two cases where inspect.getattr_static can trigger code
11428 - Issue #9732: Addition of getattr_static to the inspect module.