Searched refs:isdatadescriptor (Results 1 – 7 of 7) sorted by relevance
/third_party/python/Lib/test/ |
D | test_inspect.py | 152 self.istest(inspect.isdatadescriptor, 'collections.defaultdict.default_factory') 1259 isdatadescriptor = pred_wrapper(inspect.isdatadescriptor) 1263 self.assertEqual(inspect.getmembers(A, isdatadescriptor), 1271 self.assertEqual(inspect.getmembers(B, isdatadescriptor), 1418 self.assertFalse(inspect.isdatadescriptor(NonDataDescriptor()), 1420 self.assertTrue(inspect.isdatadescriptor(DataDescriptor0()), 1422 self.assertTrue(inspect.isdatadescriptor(DataDescriptor1()), 1424 self.assertTrue(inspect.isdatadescriptor(DataDescriptor2()), 1430 self.assertTrue(inspect.isdatadescriptor(Slotted.foo), 1438 self.assertTrue(inspect.isdatadescriptor(Propertied.a_property), [all …]
|
D | test_collections.py | 675 self.assertTrue(inspect.isdatadescriptor(Point.x))
|
/third_party/python/Lib/ |
D | pydoc.py | 134 elif inspect.ismethoddescriptor(obj) or inspect.isdatadescriptor(obj): 297 if inspect.isdatadescriptor(value): 477 if inspect.isdatadescriptor(object): return self.docdata(*args) 1765 inspect.isdatadescriptor(object) or
|
D | inspect.py | 229 def isdatadescriptor(object): function 705 elif ismethoddescriptor(obj) or isdatadescriptor(obj):
|
/third_party/python/Lib/unittest/ |
D | mock.py | 2664 if inspect.isdatadescriptor(spec):
|
/third_party/python/Doc/library/ |
D | inspect.rst | 438 .. function:: isdatadescriptor(object)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.8.0a1.rst | 4840 Correct ``inspect.isdatadescriptor`` to look for ``__set__`` or
|