Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_types.py794 C = types.new_class("C")
799 C = types.new_class("C", (int,))
807 C = types.new_class("C" + str(i), (), settings)
816 C = types.new_class("C", (), {"metaclass": Meta, "z": 2}, func)
826 res = types.new_class("X",
833 C = types.new_class("C", (), {}, None)
841 C = types.new_class(name="C",
857 D = types.new_class('D', (c,), {})
869 D = types.new_class('D', (A, c, B), {})
881 types.new_class('D', (c,), {})
[all …]
Dann_module.py29 from types import new_class
30 h_class = new_class('H', (C,))
31 j_class = new_class('J')
Dtest_subclassinit.py225 types.new_class("MyClass", (object,),
/external/selinux/libsepol/src/
Dexpand.c417 class_datum_t *class, *new_class; in class_copy_callback() local
432 new_class = (class_datum_t *) malloc(sizeof(class_datum_t)); in class_copy_callback()
433 if (!new_class) { in class_copy_callback()
437 memset(new_class, 0, sizeof(class_datum_t)); in class_copy_callback()
438 if (symtab_init(&new_class->permissions, PERM_SYMTAB_SIZE)) { in class_copy_callback()
440 free(new_class); in class_copy_callback()
444 new_class->s.value = class->s.value; in class_copy_callback()
447 ret = class_copy_default_new_object(state, class, new_class); in class_copy_callback()
449 free(new_class); in class_copy_callback()
456 free(new_class); in class_copy_callback()
[all …]
Dlink.c247 class_datum_t *cladatum, *new_class = NULL; in class_copy_callback() local
255 new_class = hashtab_search(state->base->p_classes.table, id); in class_copy_callback()
261 if (new_class == NULL) { in class_copy_callback()
287 new_class = in class_copy_callback()
289 if (new_class == NULL) { in class_copy_callback()
295 (&new_class->permissions, PERM_SYMTAB_SIZE)) { in class_copy_callback()
302 symtab_destroy(&new_class->permissions); in class_copy_callback()
308 (hashtab_datum_t) new_class); in class_copy_callback()
312 symtab_destroy(&new_class->permissions); in class_copy_callback()
315 new_class->s.value = ++(state->base->p_classes.nprim); in class_copy_callback()
[all …]
/external/python/cpython3/Lib/
Dtypes.py62 def new_class(name, bases=(), kwds=None, exec_body=None): function
Ddataclasses.py1200 cls = types.new_class(cls_name, bases, {}, lambda ns: ns.update(namespace))
/external/protobuf/python/google/protobuf/internal/
Dpython_message.py145 new_class = superclass.__new__(cls, name, bases, dictionary)
146 return new_class
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py72 specialized = types.new_class(name, bases)
/external/googletest/googlemock/scripts/generator/cpp/
Dast.py1548 new_class = class_type(class_token.start, class_token.end,
1554 token.name, new_class,
/external/google-breakpad/src/testing/scripts/generator/cpp/
Dast.py1535 new_class = class_type(class_token.start, class_token.end,
1541 token.name, new_class,
/external/python/cpython3/Doc/library/
Dtypes.rst25 .. function:: new_class(name, bases=(), kwds=None, exec_body=None)
/external/python/cpython3/Doc/whatsnew/
D3.3.rst2084 The new functions :func:`types.new_class` and :func:`types.prepare_class` provide support
/external/python/cpython3/Misc/
DHISTORY7561 - Issue #14588: The types module now provide new_class() and prepare_class()