Searched refs:new_class (Results 1 – 15 of 15) sorted by relevance
/third_party/python/Lib/test/ |
D | test_types.py | 1171 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 …]
|
D | ann_module.py | 30 from types import new_class 31 h_class = new_class('H', (C,)) 32 j_class = new_class('J')
|
D | test_subclassinit.py | 225 types.new_class("MyClass", (object,),
|
/third_party/selinux/libsepol/src/ |
D | expand.c | 450 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 …]
|
D | link.c | 249 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/ |
D | testing_refleaks.py | 118 new_class = type(test_class)( 120 return new_class
|
D | python_message.py | 147 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/ |
D | types.py | 69 def new_class(name, bases=(), kwds=None, exec_body=None): function
|
D | dataclasses.py | 1398 cls = types.new_class(cls_name, bases, {}, exec_body_callback)
|
/third_party/python/Lib/test/test_importlib/ |
D | util.py | 75 specialized = types.new_class(name, bases)
|
/third_party/googletest/googlemock/scripts/generator/cpp/ |
D | ast.py | 1586 new_class = class_type(class_token.start, class_token.end, 1592 token.name, new_class,
|
/third_party/python/Doc/library/ |
D | types.rst | 25 .. function:: new_class(name, bases=(), kwds=None, exec_body=None)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.1.rst | 367 Fix :func:`types.resolve_bases` and :func:`types.new_class` for
|
/third_party/python/Doc/whatsnew/ |
D | 3.3.rst | 2084 The new functions :func:`types.new_class` and :func:`types.prepare_class` provide support
|
/third_party/python/Misc/ |
D | HISTORY | 7561 - Issue #14588: The types module now provide new_class() and prepare_class()
|