/external/python/cpython3/Lib/test/ |
D | test_types.py | 772 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 …]
|
D | ann_module.py | 29 from types import new_class 30 h_class = new_class('H', (C,)) 31 j_class = new_class('J')
|
D | test_subclassinit.py | 226 types.new_class("MyClass", (object,),
|
/external/nanopb-c/generator/google/protobuf/ |
D | reflection.py | 125 new_class = superclass.__new__(cls, name, bases, dictionary) 126 setattr(descriptor, '_concrete_class', new_class) 127 return new_class
|
/external/selinux/libsepol/src/ |
D | expand.c | 417 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 …]
|
D | link.c | 247 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/ |
D | types.py | 57 def new_class(name, bases=(), kwds=None, exec_body=None): function
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | util.py | 65 specialized = types.new_class(name, bases)
|
/external/protobuf/python/google/protobuf/internal/ |
D | python_message.py | 145 new_class = superclass.__new__(cls, name, bases, dictionary) 146 return new_class
|
/external/python/cpython3/Doc/library/ |
D | types.rst | 25 .. function:: new_class(name, bases=(), kwds=None, exec_body=None)
|
/external/google-breakpad/src/testing/scripts/generator/cpp/ |
D | ast.py | 1535 new_class = class_type(class_token.start, class_token.end, 1541 token.name, new_class,
|
/external/v8/testing/gmock/scripts/generator/cpp/ |
D | ast.py | 1545 new_class = class_type(class_token.start, class_token.end, 1551 token.name, new_class,
|
/external/googletest/googlemock/scripts/generator/cpp/ |
D | ast.py | 1545 new_class = class_type(class_token.start, class_token.end, 1551 token.name, new_class,
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.3.rst | 2084 The new functions :func:`types.new_class` and :func:`types.prepare_class` provide support
|
/external/python/cpython3/Misc/ |
D | HISTORY | 7561 - Issue #14588: The types module now provide new_class() and prepare_class()
|