Home
last modified time | relevance | path

Searched refs:new_class (Results 1 – 15 of 15) sorted by relevance

/third_party/python/Lib/test/
Dtest_types.py1171 C = types.new_class("C")
1176 C = types.new_class("C", (int,))
1184 C = types.new_class("C" + str(i), (), settings)
1193 C = types.new_class("C", (), {"metaclass": Meta, "z": 2}, func)
1203 res = types.new_class("X",
1210 C = types.new_class("C", (), {}, None)
1218 C = types.new_class(name="C",
1234 D = types.new_class('D', (c,), {})
1240 L1 = types.new_class('L1', (typing.List[int],), {})
1245 L2 = types.new_class('L2', (list[int],), {})
[all …]
Dann_module.py30 from types import new_class
31 h_class = new_class('H', (C,))
32 j_class = new_class('J')
Dtest_subclassinit.py225 types.new_class("MyClass", (object,),
/third_party/selinux/libsepol/src/
Dexpand.c450 class_datum_t *class, *new_class; in class_copy_callback() local
465 new_class = (class_datum_t *) malloc(sizeof(class_datum_t)); in class_copy_callback()
466 if (!new_class) { in class_copy_callback()
470 memset(new_class, 0, sizeof(class_datum_t)); in class_copy_callback()
471 if (symtab_init(&new_class->permissions, PERM_SYMTAB_SIZE)) { in class_copy_callback()
473 free(new_class); in class_copy_callback()
477 new_class->s.value = class->s.value; in class_copy_callback()
480 ret = class_copy_default_new_object(state, class, new_class); in class_copy_callback()
482 free(new_class); in class_copy_callback()
489 free(new_class); in class_copy_callback()
[all …]
Dlink.c249 class_datum_t *cladatum, *new_class = NULL; in class_copy_callback() local
257 new_class = hashtab_search(state->base->p_classes.table, id); in class_copy_callback()
263 if (new_class == NULL) { in class_copy_callback()
289 new_class = in class_copy_callback()
291 if (new_class == NULL) { in class_copy_callback()
297 (&new_class->permissions, PERM_SYMTAB_SIZE)) { in class_copy_callback()
304 symtab_destroy(&new_class->permissions); in class_copy_callback()
310 (hashtab_datum_t) new_class); in class_copy_callback()
314 symtab_destroy(&new_class->permissions); in class_copy_callback()
317 new_class->s.value = ++(state->base->p_classes.nprim); in class_copy_callback()
[all …]
/third_party/protobuf/python/google/protobuf/internal/
Dtesting_refleaks.py118 new_class = type(test_class)(
120 return new_class
Dpython_message.py147 new_class = getattr(descriptor, '_concrete_class', None)
148 if new_class:
149 return new_class
157 new_class = superclass.__new__(cls, name, bases, dictionary)
158 return new_class
/third_party/python/Lib/
Dtypes.py69 def new_class(name, bases=(), kwds=None, exec_body=None): function
Ddataclasses.py1398 cls = types.new_class(cls_name, bases, {}, exec_body_callback)
/third_party/python/Lib/test/test_importlib/
Dutil.py75 specialized = types.new_class(name, bases)
/third_party/googletest/googlemock/scripts/generator/cpp/
Dast.py1586 new_class = class_type(class_token.start, class_token.end,
1592 token.name, new_class,
/third_party/python/Doc/library/
Dtypes.rst25 .. function:: new_class(name, bases=(), kwds=None, exec_body=None)
/third_party/python/Misc/NEWS.d/
D3.10.1.rst367 Fix :func:`types.resolve_bases` and :func:`types.new_class` for
/third_party/python/Doc/whatsnew/
D3.3.rst2084 The new functions :func:`types.new_class` and :func:`types.prepare_class` provide support
/third_party/python/Misc/
DHISTORY7561 - Issue #14588: The types module now provide new_class() and prepare_class()