Lines Matching defs:spec
1194 // Test that a heap type can be created from a spec that's later deleted
1197 PyType_Spec *spec = NULL;
1206 /* create a spec (and all its contents) on the heap */
1211 spec = PyMem_New(PyType_Spec, 1);
1212 if (spec == NULL) {
1230 spec->name = name;
1231 spec->basicsize = sizeof(PyObject);
1232 spec->itemsize = 0;
1233 spec->flags = Py_TPFLAGS_DEFAULT;
1245 spec->slots = slots;
1249 class = PyType_FromSpec(spec);
1254 /* deallocate the spec (and all contents) */
1258 memset(spec, 0xdd, sizeof(PyType_Spec));
1259 PyMem_Del(spec);
1260 spec = NULL;
1294 PyMem_Del(spec);