Home
last modified time | relevance | path

Searched refs:cls (Results 626 - 650 of 750) sorted by relevance

1...<<21222324252627282930

/third_party/python/Lib/
H A Ddis.py729 def from_traceback(cls, tb, *, show_caches=False, adaptive=False):
733 return cls(
H A Dstatistics.py1188 def from_samples(cls, data):
1190 return cls(*_mean_stdev(data))
H A Dos.py1082 def __subclasshook__(cls, subclass):
1083 if cls is PathLike:
H A Dtraceback.py788 def from_exception(cls, exc, *args, **kwargs):
790 return cls(type(exc), exc, exc.__traceback__, *args, **kwargs)
H A Dpdb.py126 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 Dmapping_tests.py441 def __new__(cls):
569 def __new__(cls):
H A Dtest_generators.py340 def __new__(cls, *args, **kwargs):
341 return cls
H A Dtest_genericalias.py426 def __new__(cls, *args, **kwargs):
427 super().__new__(cls, *args, **kwargs)
H A Dtest_dict.py113 for cls in [dict, Dict]:
114 d = cls()
285 def __new__(cls):
319 def __new__(cls):
H A Dtest_long.py1511 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 Dtest_exceptions.py1279 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 Dtest_types.py769 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 Dtest_shutil.py2334 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 Dtest_ast.py1352 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 Dtest_unicode.py190 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 Dtest_socket.py2103 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 Dpycore_ast.h595 expr_ty cls; member
834 pattern_ty _PyAST_MatchClass(expr_ty cls, asdl_pattern_seq * patterns,
/third_party/python/Modules/
H A Dsha256module.c426 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 Deditor.py457 * 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 Dmain.cpp1623 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 Dspecialize.c1216 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 Dtest_base_events.py1967 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 Dtest_tasks.py2443 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 Dtranstst.cpp4163 #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 Dcpp_parser.py169 def parse_test_description(cls, message):

Completed in 89 milliseconds

1...<<21222324252627282930