Home
last modified time | relevance | path

Searched refs:add_weak (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dtypeobject.c2103 int j, may_add_dict, may_add_weak, add_dict, add_weak; in type_new() local
2189 add_weak = 0; in type_new()
2197 add_weak++; in type_new()
2254 if (!may_add_weak || add_weak) { in type_new()
2261 add_weak++; in type_new()
2269 newslots = PyList_New(nslots - add_dict - add_weak); in type_new()
2277 (add_weak && strcmp(s, "__weakref__") == 0)) in type_new()
2287 assert(j == nslots - add_dict - add_weak); in type_new()
2305 (may_add_weak && !add_weak))) { in type_new()
2314 if (may_add_weak && !add_weak) in type_new()
[all …]
/external/python/cpython3/Objects/
Dtypeobject.c2357 int j, may_add_dict, may_add_weak, add_dict, add_weak; in type_new() local
2451 add_weak = 0; in type_new()
2459 add_weak++; in type_new()
2500 if (!may_add_weak || add_weak) { in type_new()
2507 add_weak++; in type_new()
2515 newslots = PyList_New(nslots - add_dict - add_weak); in type_new()
2522 (add_weak && in type_new()
2546 assert(j == nslots - add_dict - add_weak); in type_new()
2561 (may_add_weak && !add_weak))) { in type_new()
2571 if (may_add_weak && !add_weak && in type_new()
[all …]