/third_party/python/Lib/ |
H A D | plistlib.py | 197 handler = getattr(self, "begin_" + element, None) 202 handler = getattr(self, "end_" + element, None)
|
H A D | traceback.py | 405 limit = getattr(sys, 'tracebacklimit', None) 700 self.__notes__ = getattr(exc_value, '__notes__', None)
|
H A D | pprint.py | 199 items = [(f.name, getattr(object, f.name)) for f in _dataclasses.fields(object) if f.repr] 557 r = getattr(typ, "__repr__", None)
|
H A D | _pyio.py | 1564 flags |= getattr(os, 'O_BINARY', 0) 1566 noinherit_flag = (getattr(os, 'O_NOINHERIT', 0) or 1567 getattr(os, 'O_CLOEXEC', 0)) 1597 self._blksize = getattr(fdfstat, 'st_blksize', 0)
|
/third_party/python/Lib/test/ |
H A D | test_runpy.py | 109 actual = (k, getattr(result_spec, attr)) 110 expected = (k, getattr(expected_spec, attr))
|
H A D | test_hmac.py | 113 func = getattr(_hashopenssl, f"openssl_{hashname}") 377 cache = getattr(hashlib, '__builtin_constructor_cache')
|
H A D | test_getpath.py | 911 return getattr(self, key) 1088 return getattr(self, key)
|
H A D | test_genericpath.py | 30 getattr(self.pathmodule, attr)() 324 func = getattr(self.pathmodule, attr)
|
H A D | test_wsgiref.py | 553 self.assertEqual(getattr(handler, 'wsgi_' + attr), 603 self.assertRaises(NotImplementedError, getattr(h,name))
|
H A D | test_shutil.py | 60 raise OSError(getattr(errno, 'EXDEV', 18), "Invalid cross-device link") 935 self.assertLessEqual(getattr(src_link_stat, attr), 936 getattr(dst_link_stat, attr) + 1) 1119 self.assertLessEqual(getattr(file1_stat, attr), 1120 getattr(file2_stat, attr) + 1) 1122 self.assertEqual(getattr(file1_stat, 'st_flags'), 1123 getattr(file2_stat, 'st_flags')) 1152 self.assertLessEqual(getattr(src_link_stat, attr), 1153 getattr(dst_stat, attr) + 1) 1727 self.assertIsInstance(getattr(usag [all...] |
H A D | test_builtin.py | 556 # (an ugly trick to cause getattr(f, "__class__") to fail) 932 self.assertTrue(getattr(sys, 'stdout') is sys.stdout) 933 self.assertRaises(TypeError, getattr) 934 self.assertRaises(TypeError, getattr, sys) 936 self.assertRaisesRegex(TypeError, msg, getattr, sys, 1) 937 self.assertRaisesRegex(TypeError, msg, getattr, sys, 1, 'spam') 938 self.assertRaises(AttributeError, getattr, sys, chr(sys.maxunicode)) 940 self.assertRaises(AttributeError, getattr, 1, "\uDAD1\uD51E")
|
H A D | test_set.py | 1342 method = getattr(x, TestSubsets.case2method[case]) 1351 method = getattr(y, TestSubsets.case2method[rcase]) 1767 getattr(s, methname)(list(g(data))) 1768 getattr(t, methname)(g(data)) 1771 self.assertRaises(TypeError, getattr(set('january'), methname), X(data)) 1772 self.assertRaises(TypeError, getattr(set('january'), methname), N(data)) 1773 self.assertRaises(ZeroDivisionError, getattr(set('january'), methname), E(data))
|
H A D | test_posix.py | 73 posix_func = getattr(posix, name, None) 189 @unittest.skipUnless(getattr(os, 'execve', None) in os.supports_fd, "test needs execve() to support the fd parameter") 811 getattr(posix, 'fstat', None)) 822 getattr(posix, 'lstat', None)) 1261 function = getattr(os, name, None) 1908 spawn_func = getattr(posix, 'posix_spawn', None) 1913 spawn_func = getattr(posix, 'posix_spawnp', None)
|
H A D | string_tests.py | 65 realresult = getattr(obj, methodname)(*args, **kwargs) 80 realresult = getattr(obj, methodname)(*args) 88 getattr(obj, methodname)(*args) 97 getattr(obj, methodname)(*args)
|
H A D | test_concurrent_futures.py | 315 context=getattr(self, "ctx", ""))) 343 context=getattr(self, "ctx", ""))) 396 context=getattr(self, 'ctx', None))) 414 if getattr(self, 'ctx', None):
|
H A D | test_sys.py | 690 self.assertEqual(type(getattr(sys.flags, attr)), attr_type, attr) 825 ' std = getattr(sys, name)', 1107 marker = getattr(os, '__file__', None) 1236 self.assertEqual(getattr(hook_args, attr), 1237 getattr(expected, attr),
|
H A D | test_urlparse.py | 895 getattr(result, attr).endswith("#" + expected_frag)) 901 getattr(result, attr).endswith(expected_frag)) 1175 object = getattr(urllib.parse, name) 1176 if getattr(object, '__module__', None) == 'urllib.parse':
|
/third_party/python/Objects/stringlib/ |
H A D | unicode_format.h | 147 getattr(PyObject *obj, SubString *name) in getattr() function 392 format_spec. It handles getindex and getattr lookups and consumes 460 /* getattr lookup "." */ in get_field_object() 461 tmp = getattr(obj, &name); in get_field_object()
|
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | nfs4xdr.c | 860 struct nfsd4_getattr *getattr = &u->getattr; in nfsd4_decode_getattr() local 861 memset(getattr, 0, sizeof(*getattr)); in nfsd4_decode_getattr() 862 return nfsd4_decode_bitmap4(argp, getattr->ga_bmval, in nfsd4_decode_getattr() 863 ARRAY_SIZE(getattr->ga_bmval)); in nfsd4_decode_getattr() 3816 struct nfsd4_getattr *getattr = &u->getattr; in nfsd4_encode_getattr() local 3817 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() 3821 getattr in nfsd4_encode_getattr() [all...] |
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | dir.c | 21 * specific inode (e.g., a getattr due to fstat(2)), or as a path 796 req->r_args.getattr.mask = cpu_to_le32(mask); in ceph_lookup() 1734 req->r_args.getattr.mask = cpu_to_le32(mask); in ceph_d_revalidate() 1953 .getattr = ceph_getattr, 1972 .getattr = ceph_getattr,
|
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | dir.c | 22 * specific inode (e.g., a getattr due to fstat(2)), or as a path 834 req->r_args.getattr.mask = cpu_to_le32(mask); in ceph_lookup() 1934 req->r_args.getattr.mask = cpu_to_le32(mask); in ceph_d_revalidate() 2154 .getattr = ceph_getattr, 2173 .getattr = ceph_getattr,
|
/third_party/python/Tools/c-analyzer/c_parser/ |
H A D | info.py | 340 value = getattr(self, column) 367 kind = getattr(decl, 'kind', None) 558 args = [f'{n}={getattr(self, n)!r}' 674 value = getattr(self, column, None) 676 value = getattr(self, colname, None)
|
/third_party/python/Lib/idlelib/ |
H A D | pyshell.py | 266 if not getattr(self.root, "breakpoint_error_displayed", False): 726 msg = getattr(value, 'msg', '') or value or "<no detail available>" 727 lineno = getattr(value, 'lineno', '') or 1 728 offset = getattr(value, 'offset', '') or 0
|
/third_party/python/Lib/http/ |
H A D | cookiejar.py | 834 attr = getattr(self, name) 962 fn = getattr(self, fn_name) 1109 fn = getattr(self, fn_name) 1588 rfc2109_as_ns = getattr(self._policy, 'rfc2109_as_netscape', None)
|
/third_party/python/Lib/asyncio/ |
H A D | base_events.py | 72 if isinstance(getattr(cb, '__self__', None), tasks.Task): 923 if 'b' not in getattr(file, 'mode', 'b'): 1178 mode = getattr(transport, '_sendfile_compatible', 1246 if not getattr(transport, '_start_tls_compatible', False):
|