/third_party/python/Lib/ctypes/test/ |
H A D | test_struct_fields.py | 65 def __init_subclass__(cls, **kwargs): 66 cls._fields_ = [] # This line will fail, `stgdict` is not ready
|
H A D | test_structures.py | 332 cls, msg = self.get_except(Person, b"Someone", (1, 2)) 333 self.assertEqual(cls, RuntimeError) 338 cls, msg = self.get_except(Person, b"Someone", (b"a", b"b", b"c")) 339 self.assertEqual(cls, RuntimeError) 367 cls, msg = self.get_except(meta, "X", (Structure,), {}) 368 self.assertEqual((cls, msg), 375 cls, msg = self.get_except(eval, "X()", locals()) 376 self.assertEqual((cls, msg), (TypeError, "abstract class"))
|
/third_party/python/Lib/test/ |
H A D | test_functools.py | 483 cls = functools.partialmethod(classmethod(capture), d=9) variable in TestPartialMethod.A 533 self.assertIs(obj.cls.__self__, self.A) 534 self.assertIs(self.A.cls.__self__, self.A) 552 self.assertEqual(obj.cls(), ((self.A,), {'d': 9})) 553 self.assertEqual(obj.cls(5), ((self.A, 5), {'d': 9})) 554 self.assertEqual(obj.cls(c=8), ((self.A,), {'c': 8, 'd': 9})) 555 self.assertEqual(obj.cls(5, c=8), ((self.A, 5), {'c': 8, 'd': 9})) 588 for func in [self.A.static, self.A.cls, self.A.over_partial, self.A.nested, self.A.both]: 1239 def __new__(cls, name, bases, ns): 1240 return super().__new__(cls, nam [all...] |
H A D | test_copy.py | 44 def __new__(cls, foo): 45 obj = object.__new__(cls) 197 def __new__(cls, foo): 198 self = int.__new__(cls) 214 def __new__(cls, *, foo): 215 self = int.__new__(cls) 309 def __new__(cls, foo): 310 obj = object.__new__(cls) 496 def __new__(cls, foo): 497 self = int.__new__(cls) [all...] |
H A D | test_doctest.py | 90 def a_classmethod(cls, v): 109 def a_classmethod_property(cls): 114 return cls.a_class_attribute
|
H A D | test_nntplib.py | 238 cls = type(self) 242 cls.server = None 245 def wrap_methods(cls): 254 for name in dir(cls): 257 meth = getattr(cls, name) 262 setattr(cls, name, wrap_meth(meth)) 322 def setUpClass(cls): 328 if cls.ssl_context is not None: 329 kwargs["ssl_context"] = cls.ssl_context 330 with socket_helper.transient_internet(cls [all...] |
H A D | test_pydoc.py | 1192 def cm(cls, x): 1278 def __get__(self, obj, cls): 1303 def __get__(self, obj, cls): 1307 def __set__(self, obj, cls): 1470 def __dir__(cls): 1490 def __dir__(cls): 1497 def __dir__(cls): 1504 def __dir__(cls): 1507 Meta1.__dir__(cls) + Meta2.__dir__(cls)))) [all...] |
/third_party/ltp/testcases/kernel/device-drivers/base/tbase/ |
H A D | tbase.c | 206 .cls = &test_sysclass, 727 struct class *cls = &test_class; in test_class_file() local 729 if (class_create_file(cls, &class_attr_test_id)) { in test_class_file() 734 class_remove_file(cls, &class_attr_test_id); in test_class_file()
|
/third_party/python/Lib/multiprocessing/ |
H A D | reduction.py | 44 def register(cls, type, reduce): 46 cls._extra_reducers[type] = reduce 49 def dumps(cls, obj, protocol=None): 51 cls(buf, protocol).dump(obj)
|
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
H A D | response.c | 309 * @param cls pointer to the response 316 file_reader (void *cls, uint64_t pos, char *buf, size_t max) in file_reader() argument 318 struct MHD_Response *response = cls; in file_reader() 335 * @param cls pointer to file descriptor 338 free_callback (void *cls) in free_callback() argument 340 struct MHD_Response *response = cls; in free_callback()
|
/third_party/skia/third_party/externals/microhttpd/src/testcurl/ |
H A D | test_get_chunked.c | 74 crc (void *cls, uint64_t pos, char *buf, size_t max) in crc() argument 76 struct MHD_Response **responseptr = cls; in crc() 99 ahc_echo (void *cls, in ahc_echo() argument 107 const char *me = cls; in ahc_echo()
|
/third_party/skia/third_party/externals/microhttpd/src/testzzuf/ |
H A D | test_get_chunked.c | 65 crc (void *cls, uint64_t pos, char *buf, size_t max) in crc() argument 67 struct MHD_Response **responseptr = cls; in crc() 90 ahc_echo (void *cls, in ahc_echo() argument 98 const char *me = cls; in ahc_echo()
|
H A D | test_post.c | 55 completed_cb (void *cls, in completed_cb() argument 87 post_iterator (void *cls, in post_iterator() argument 95 int *eok = cls; in post_iterator() 107 ahc_echo (void *cls, in ahc_echo() argument
|
H A D | test_post_form.c | 53 completed_cb (void *cls, in completed_cb() argument 84 post_iterator (void *cls, in post_iterator() argument 92 int *eok = cls; in post_iterator() 110 ahc_echo (void *cls, in ahc_echo() argument
|
/third_party/python/Modules/ |
H A D | _queuemodule.c | 186 cls: defining_class 204 _queue_SimpleQueue_get_impl(simplequeueobject *self, PyTypeObject *cls, in _queue_SimpleQueue_get_impl() argument 260 PyObject *module = PyType_GetModule(cls); in _queue_SimpleQueue_get_impl() 291 cls: defining_class 302 PyTypeObject *cls) in _queue_SimpleQueue_get_nowait_impl() 305 return _queue_SimpleQueue_get_impl(self, cls, 0, Py_None); in _queue_SimpleQueue_get_nowait_impl() 301 _queue_SimpleQueue_get_nowait_impl(simplequeueobject *self, PyTypeObject *cls) _queue_SimpleQueue_get_nowait_impl() argument
|
H A D | _datetimemodule.c | 968 new_date_subclass_ex(int year, int month, int day, PyObject *cls) in new_date_subclass_ex() argument 972 if ((PyTypeObject *)cls == &PyDateTime_DateType) { in new_date_subclass_ex() 973 result = new_date_ex(year, month, day, (PyTypeObject *)cls); in new_date_subclass_ex() 975 else if ((PyTypeObject *)cls == &PyDateTime_DateTimeType) { in new_date_subclass_ex() 977 (PyTypeObject *)cls); in new_date_subclass_ex() 980 result = PyObject_CallFunction(cls, "iii", year, month, day); in new_date_subclass_ex() 1036 int fold, PyObject *cls) { in new_datetime_subclass_fold_ex() 1038 if ((PyTypeObject*)cls == &PyDateTime_DateTimeType) { in new_datetime_subclass_fold_ex() 1044 dt = PyObject_CallFunction(cls, "iiiiiiiO", in new_datetime_subclass_fold_ex() 1061 PyObject *cls) { in new_datetime_subclass_ex() 1034 new_datetime_subclass_fold_ex(int year, int month, int day, int hour, int minute, int second, int usecond, PyObject *tzinfo, int fold, PyObject *cls) new_datetime_subclass_fold_ex() argument 1059 new_datetime_subclass_ex(int year, int month, int day, int hour, int minute, int second, int usecond, PyObject *tzinfo, PyObject *cls) new_datetime_subclass_ex() argument 2950 date_fromtimestamp(PyObject *cls, PyObject *obj) date_fromtimestamp() argument 2973 date_today(PyObject *cls, PyObject *dummy) date_today() argument 3019 datetime_date_fromtimestamp_capi(PyObject *cls, PyObject *args) datetime_date_fromtimestamp_capi() argument 3035 date_fromordinal(PyObject *cls, PyObject *args) date_fromordinal() argument 3058 date_fromisoformat(PyObject *cls, PyObject *dtstr) date_fromisoformat() argument 3098 date_fromisocalendar(PyObject *cls, PyObject *args, PyObject *kw) date_fromisocalendar() argument 4628 time_fromisoformat(PyObject *cls, PyObject *tstr) time_fromisoformat() argument 5031 datetime_from_timet_and_us(PyObject *cls, TM_FUNC f, time_t timet, int us, PyObject *tzinfo) datetime_from_timet_and_us() argument 5103 datetime_from_timestamp(PyObject *cls, TM_FUNC f, PyObject *timestamp, PyObject *tzinfo) datetime_from_timestamp() argument 5121 datetime_best_possible(PyObject *cls, TM_FUNC f, PyObject *tzinfo) datetime_best_possible() argument 5174 datetime_utcnow(PyObject *cls, PyObject *dummy) datetime_utcnow() argument 5181 datetime_fromtimestamp(PyObject *cls, PyObject *args, PyObject *kw) datetime_fromtimestamp() argument 5208 datetime_utcfromtimestamp(PyObject *cls, PyObject *args) datetime_utcfromtimestamp() argument 5221 datetime_strptime(PyObject *cls, PyObject *args) datetime_strptime() argument 5241 datetime_combine(PyObject *cls, PyObject *args, PyObject *kw) datetime_combine() argument 5429 datetime_fromisoformat(PyObject *cls, PyObject *dtstr) datetime_fromisoformat() argument [all...] |
/third_party/python/Lib/test/test_importlib/ |
H A D | test_resource.py | 215 def setUpClass(cls): 216 sys.path.append(cls.site_dir) 219 def tearDownClass(cls): 220 sys.path.remove(cls.site_dir)
|
/third_party/rust/crates/regex/regex-syntax/src/hir/ |
H A D | print.rs | 97 HirKind::Class(hir::Class::Unicode(ref cls)) => { in visit_pre() 99 for range in cls.iter() { in visit_pre() 110 HirKind::Class(hir::Class::Bytes(ref cls)) => { in visit_pre() 112 for range in cls.iter() { in visit_pre()
|
/third_party/python/Lib/ |
H A D | pickle.py | 159 NEWOBJ = b'\x81' # build object by applying cls.__new__ to argtuple 635 cls, args, kwargs = args 636 if not hasattr(cls, "__new__"): 639 if obj is not None and cls is not obj.__class__: 643 save(cls) 648 func = partial(cls.__new__, cls, *args, **kwargs) 662 # def __newobj__(cls, *args): 663 # return cls.__new__(cls, *arg [all...] |
/third_party/python/Lib/importlib/ |
H A D | util.py | 278 def factory(cls, loader): 280 cls.__check_eager_loader(loader) 281 return lambda *args, **kwargs: cls(loader(*args, **kwargs))
|
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/ |
H A D | conventions.py | 50 def from_string(cls, s): 52 return cls.OR 54 return cls.AND
|
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | _parameterized.py | 178 def _StrClass(cls): 179 return '%s.%s' % (cls.__module__, cls.__name__)
|
/third_party/vulkan-headers/registry/spec_tools/ |
H A D | conventions.py | 50 def from_string(cls, s): 52 return cls.OR 54 return cls.AND
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | BigNumberFormatTest.java | 335 String cls = n.getClass().getName(); in showNumber() 338 int i = cls.lastIndexOf('.'); in showNumber() 339 cls = cls.substring(i+1); in showNumber() 341 return n.toString() + " (" + cls + ')'; in showNumber()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
H A D | BigNumberFormatTest.java | 338 String cls = n.getClass().getName(); in showNumber() 341 int i = cls.lastIndexOf('.'); in showNumber() 342 cls = cls.substring(i+1); in showNumber() 344 return n.toString() + " (" + cls + ')'; in showNumber()
|