Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Dtest_inspect.py1827 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1828 self.assertEqual(inspect.getattr_static(thing, 'x', None), Thing.x)
1830 inspect.getattr_static(thing, 'y')
1832 self.assertEqual(inspect.getattr_static(thing, 'y', 3), 3)
1841 self.assertEqual(inspect.getattr_static(something, 'x'), Thing.x)
1849 self.assertEqual(inspect.getattr_static(thing, 'x'), 3)
1851 self.assertEqual(inspect.getattr_static(thing, 'x'), 2)
1859 self.assertEqual(inspect.getattr_static(thing, 'x'), Thing.x)
1869 self.assertEqual(inspect.getattr_static(thing, 'x'), desc)
1875 self.assertEqual(inspect.getattr_static(Thing, 'x'), Thing.x)
[all …]
/third_party/python/Doc/library/
Dinspect.rst1302 can be inconvenient. :func:`getattr_static` has the same signature as :func:`getattr`
1305 .. function:: getattr_static(obj, attr, default=None)
1322 :func:`getattr_static` does not resolve descriptors, for example slot descriptors or
1339 result = getattr_static(some_object, 'foo')
/third_party/python/Lib/
Dpydoc.py1051 if cl and inspect.getattr_static(cl, realname, []) is object:
1485 if cl and inspect.getattr_static(cl, realname, []) is object:
Dinspect.py1731 def getattr_static(obj, attr, default=_sentinel): function
/third_party/python/Doc/whatsnew/
D3.2.rst1902 the :mod:`inspect` module has a new function, :func:`~inspect.getattr_static`.
1916 >>> inspect.getattr_static(a, 'f')
/third_party/python/Misc/NEWS.d/
D3.9.0a1.rst1874 Fixed :func:`inspect.getattr_static` used ``isinstance`` while it should
/third_party/python/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.