Searched refs:new_class (Results 1 – 14 of 14) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_types.py | 794 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 …]
|
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 | 225 types.new_class("MyClass", (object,),
|
/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 | 62 def new_class(name, bases=(), kwds=None, exec_body=None): function
|
D | dataclasses.py | 1200 cls = types.new_class(cls_name, bases, {}, lambda ns: ns.update(namespace))
|
/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/Lib/test/test_importlib/ |
D | util.py | 72 specialized = types.new_class(name, bases)
|
/external/googletest/googlemock/scripts/generator/cpp/ |
D | ast.py | 1548 new_class = class_type(class_token.start, class_token.end, 1554 token.name, new_class,
|
/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/python/cpython3/Doc/library/ |
D | types.rst | 25 .. function:: new_class(name, bases=(), kwds=None, exec_body=None)
|
/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()
|