Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_types.py772 C = types.new_class("C")
777 C = types.new_class("C", (int,))
785 C = types.new_class("C" + str(i), (), settings)
794 C = types.new_class("C", (), {"metaclass": Meta, "z": 2}, func)
804 res = types.new_class("X",
811 C = types.new_class("C", (), {}, None)
819 C = types.new_class(name="C",
840 B = types.new_class("B", (object,))
841 C = types.new_class("C", (object,), {"metaclass": A})
870 A = types.new_class("A", (), {"metaclass": AMeta})
[all …]
Dann_module.py29 from types import new_class
30 h_class = new_class('H', (C,))
31 j_class = new_class('J')
Dtest_subclassinit.py226 types.new_class("MyClass", (object,),
/external/nanopb-c/generator/google/protobuf/
Dreflection.py125 new_class = superclass.__new__(cls, name, bases, dictionary)
126 setattr(descriptor, '_concrete_class', new_class)
127 return new_class
/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.py57 def new_class(name, bases=(), kwds=None, exec_body=None): function
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py65 specialized = types.new_class(name, bases)
/external/protobuf/python/google/protobuf/internal/
Dpython_message.py145 new_class = superclass.__new__(cls, name, bases, dictionary)
146 return new_class
/external/python/cpython3/Doc/library/
Dtypes.rst25 .. function:: new_class(name, bases=(), kwds=None, exec_body=None)
/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/v8/testing/gmock/scripts/generator/cpp/
Dast.py1545 new_class = class_type(class_token.start, class_token.end,
1551 token.name, new_class,
/external/googletest/googlemock/scripts/generator/cpp/
Dast.py1545 new_class = class_type(class_token.start, class_token.end,
1551 token.name, new_class,
/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()