/third_party/python/Lib/ |
H A D | dis.py | 729 def from_traceback(cls, tb, *, show_caches=False, adaptive=False): 733 return cls(
|
H A D | statistics.py | 1188 def from_samples(cls, data): 1190 return cls(*_mean_stdev(data))
|
H A D | os.py | 1082 def __subclasshook__(cls, subclass): 1083 if cls is PathLike:
|
H A D | traceback.py | 788 def from_exception(cls, exc, *args, **kwargs): 790 return cls(type(exc), exc, exc.__traceback__, *args, **kwargs)
|
H A D | pdb.py | 126 def __new__(cls, val): 128 res = super().__new__(cls, os.path.realpath(val)) 1760 cls = _ModuleTarget if module_indicated else _ScriptTarget 1761 target = cls(args[0])
|
/third_party/python/Lib/test/ |
H A D | mapping_tests.py | 441 def __new__(cls): 569 def __new__(cls):
|
H A D | test_generators.py | 340 def __new__(cls, *args, **kwargs): 341 return cls
|
H A D | test_genericalias.py | 426 def __new__(cls, *args, **kwargs): 427 super().__new__(cls, *args, **kwargs)
|
H A D | test_dict.py | 113 for cls in [dict, Dict]: 114 d = cls() 285 def __new__(cls): 319 def __new__(cls):
|
H A D | test_long.py | 1511 def __new__(cls, value): 1512 return int.__new__(cls, value + 1) 1561 def __new__(cls, value=0): 1562 self = int.__new__(cls, value)
|
H A D | test_exceptions.py | 1279 def __subclasscheck__(cls, subclass): 2104 for cls, suggestion in [(Substitution, "'blech'?"), 2111 cls().bluch 2250 for cls in [A, B, C]: 2252 cls().bluch
|
H A D | test_types.py | 769 def __instancecheck__(cls, inst): 777 def __subclasscheck__(cls, sub): 1239 def __init__(cls, name, bases, ns, **kw): 1629 def __new__(cls, name, bases, attrs): 1631 new_class = super_new(cls, name, bases, {})
|
H A D | test_shutil.py | 2334 def setUpClass(cls): 2335 write_test_file(TESTFN, cls.FILESIZE) 2338 def tearDownClass(cls): 2411 def setUpClass(cls): 2412 write_test_file(TESTFN, cls.FILESIZE) 2414 cls.FILEDATA = f.read() 2415 assert len(cls.FILEDATA) == cls.FILESIZE 2418 def tearDownClass(cls):
|
H A D | test_ast.py | 1352 def cls(bases=None, keywords=None, body=None, decorator_list=None): function 1363 self.stmt(cls(bases=[ast.Name("x", ast.Store())]), 1365 self.stmt(cls(keywords=[ast.keyword("x", ast.Name("x", ast.Store()))]), 1367 self.stmt(cls(body=[]), "empty body on ClassDef") 1368 self.stmt(cls(body=[None]), "None disallowed") 1369 self.stmt(cls(decorator_list=[ast.Name("x", ast.Store())]),
|
H A D | test_unicode.py | 190 for cls in cases: 191 with self.subTest(cls=cls): 192 self.assertRaises(TypeError, cls) 2393 def __new__(cls, content=""): 2394 return str.__new__(cls, 2*content)
|
H A D | test_socket.py | 2103 def build_can_frame(cls, can_id, data): 2107 return struct.pack(cls.can_frame_fmt, can_id, can_dlc, data) 2110 def dissect_can_frame(cls, frame): 2112 can_id, can_dlc, data = struct.unpack(cls.can_frame_fmt, frame) 5951 def remoteProcessServer(cls, q): 6059 def setUpClass(cls): 6069 for i in range(cls.BUFSIZE)]) 6071 for csize in chunks(cls.FILESIZE, cls.BUFSIZE): 6074 cls [all...] |
/third_party/python/Include/internal/ |
H A D | pycore_ast.h | 595 expr_ty cls; member 834 pattern_ty _PyAST_MatchClass(expr_ty cls, asdl_pattern_seq * patterns,
|
/third_party/python/Modules/ |
H A D | sha256module.c | 426 cls:defining_class 432 SHA256Type_copy_impl(SHAobject *self, PyTypeObject *cls) in SHA256Type_copy_impl() argument 436 _sha256_state *state = PyType_GetModuleState(cls); in SHA256Type_copy_impl()
|
/third_party/python/Lib/idlelib/ |
H A D | editor.py | 457 * cls.menu_specs - menubar name, titlecase display form pairs 1186 cls = getattr(mod, name) 1188 if hasattr(cls, "menudefs"): 1189 self.fill_menus(cls.menudefs, keydefs) 1190 ins = cls(self)
|
/third_party/skia/third_party/externals/spirv-cross/ |
H A D | main.cpp | 1623 StorageClass cls = StorageClassMax; in main_inner() 1626 cls = StorageClassInput; in main_inner() 1628 cls = StorageClassOutput; in main_inner() 1632 args.interface_variable_renames.push_back({ cls, loc, move(var_name) }); in main_inner()
|
/third_party/python/Python/ |
H A D | specialize.c | 1216 PyTypeObject *cls = Py_TYPE(container); in _Py_Specialize_BinarySubscr() local 1217 PyObject *descriptor = _PyType_Lookup(cls, &_Py_ID(__getitem__)); in _Py_Specialize_BinarySubscr() 1234 assert(cls->tp_version_tag != 0); in _Py_Specialize_BinarySubscr() 1235 write_u32(cache->type_version, cls->tp_version_tag); in _Py_Specialize_BinarySubscr()
|
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_base_events.py | 1967 def setUpClass(cls): 1968 cls.__old_bufsize = constants.SENDFILE_FALLBACK_READBUFFER_SIZE 1971 fp.write(cls.DATA) 1975 def tearDownClass(cls): 1976 constants.SENDFILE_FALLBACK_READBUFFER_SIZE = cls.__old_bufsize
|
H A D | test_tasks.py | 2443 def add_subclass_tests(cls): 2444 BaseTask = cls.Task 2445 BaseFuture = cls.Future 2448 return cls 2487 cls.Task = Task 2488 cls.Future = Future 2491 cls.test_subclasses_ctask_cfuture = test_subclasses_ctask_cfuture 2496 cls.test_task_source_traceback = None 2498 return cls
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | transtst.cpp | 4163 #define TEST_TRANSLIT_ID(id, cls) UPRV_BLOCK_MACRO_BEGIN { \ 4169 if (t->getDynamicClassID() != cls::getStaticClassID()) { \ 4170 errln("FAIL: " #cls " dynamic and static class ID mismatch"); \ 4177 #define TEST_TRANSLIT_RULE(rule, cls) UPRV_BLOCK_MACRO_BEGIN { \ 4184 if (t->getDynamicClassID() != cls ::getStaticClassID()) { \ 4185 errln("FAIL: " #cls " dynamic and static class ID mismatch"); \
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/parser/ |
H A D | cpp_parser.py | 169 def parse_test_description(cls, message):
|