Lines Matching refs:PySetObject
56 set_lookkey(PySetObject *so, PyObject *key, Py_hash_t hash) in set_lookkey()
100 static int set_table_resize(PySetObject *, Py_ssize_t);
103 set_add_entry(PySetObject *so, PyObject *key, Py_hash_t hash) in set_add_entry()
218 set_table_resize(PySetObject *so, Py_ssize_t minused) in set_table_resize()
297 set_contains_entry(PySetObject *so, PyObject *key, Py_hash_t hash) in set_contains_entry()
311 set_discard_entry(PySetObject *so, PyObject *key, Py_hash_t hash) in set_discard_entry()
330 set_add_key(PySetObject *so, PyObject *key) in set_add_key()
344 set_contains_key(PySetObject *so, PyObject *key) in set_contains_key()
358 set_discard_key(PySetObject *so, PyObject *key) in set_discard_key()
372 set_empty_to_minsize(PySetObject *so) in set_empty_to_minsize()
383 set_clear_internal(PySetObject *so) in set_clear_internal()
445 set_next(PySetObject *so, Py_ssize_t *pos_ptr, setentry **entry_ptr) in set_next()
469 set_dealloc(PySetObject *so) in set_dealloc()
493 set_repr(PySetObject *so) in set_repr()
540 return ((PySetObject *)so)->used; in set_len()
544 set_merge(PySetObject *so, PyObject *otherset) in set_merge()
546 PySetObject *other; in set_merge()
555 other = (PySetObject*)otherset; in set_merge()
616 set_pop(PySetObject *so, PyObject *Py_UNUSED(ignored)) in set_pop()
644 set_traverse(PySetObject *so, visitproc visit, void *arg) in set_traverse()
674 PySetObject *so = (PySetObject *)self; in frozenset_hash()
721 PySetObject *si_set; /* Set to NULL when iterator is exhausted */
786 PySetObject *so = si->si_set; in setiter_iternext()
853 set_iter(PySetObject *so) in set_iter()
868 set_update_internal(PySetObject *so, PyObject *other) in set_update_internal()
917 set_update(PySetObject *so, PyObject *args) in set_update()
942 PySetObject *so; in make_new_set()
944 so = (PySetObject *)type->tp_alloc(type, 0); in make_new_set()
1061 set_swap_bodies(PySetObject *a, PySetObject *b) in set_swap_bodies()
1096 set_copy(PySetObject *so, PyObject *Py_UNUSED(ignored)) in set_copy()
1102 frozenset_copy(PySetObject *so, PyObject *Py_UNUSED(ignored)) in frozenset_copy()
1114 set_clear(PySetObject *so, PyObject *Py_UNUSED(ignored)) in set_clear()
1123 set_union(PySetObject *so, PyObject *args) in set_union()
1125 PySetObject *result; in set_union()
1129 result = (PySetObject *)set_copy(so, NULL); in set_union()
1151 set_or(PySetObject *so, PyObject *other) in set_or()
1153 PySetObject *result; in set_or()
1158 result = (PySetObject *)set_copy(so, NULL); in set_or()
1171 set_ior(PySetObject *so, PyObject *other) in set_ior()
1183 set_intersection(PySetObject *so, PyObject *other) in set_intersection()
1185 PySetObject *result; in set_intersection()
1193 result = (PySetObject *)make_new_set_basetype(Py_TYPE(so), NULL); in set_intersection()
1203 so = (PySetObject *)other; in set_intersection()
1207 while (set_next((PySetObject *)other, &pos, &entry)) { in set_intersection()
1258 set_intersection_multi(PySetObject *so, PyObject *args) in set_intersection_multi()
1269 PyObject *newresult = set_intersection((PySetObject *)result, other); in set_intersection_multi()
1286 set_intersection_update(PySetObject *so, PyObject *other) in set_intersection_update()
1293 set_swap_bodies(so, (PySetObject *)tmp); in set_intersection_update()
1299 set_intersection_update_multi(PySetObject *so, PyObject *args) in set_intersection_update_multi()
1306 set_swap_bodies(so, (PySetObject *)tmp); in set_intersection_update_multi()
1315 set_and(PySetObject *so, PyObject *other) in set_and()
1323 set_iand(PySetObject *so, PyObject *other) in set_iand()
1338 set_isdisjoint(PySetObject *so, PyObject *other) in set_isdisjoint()
1356 so = (PySetObject *)other; in set_isdisjoint()
1359 while (set_next((PySetObject *)other, &pos, &entry)) { in set_isdisjoint()
1402 set_difference_update_internal(PySetObject *so, PyObject *other) in set_difference_update_internal()
1423 while (set_next((PySetObject *)other, &pos, &entry)) in set_difference_update_internal()
1455 set_difference_update(PySetObject *so, PyObject *args) in set_difference_update()
1471 set_copy_and_difference(PySetObject *so, PyObject *other) in set_copy_and_difference()
1478 if (set_difference_update_internal((PySetObject *) result, other) == 0) in set_copy_and_difference()
1485 set_difference(PySetObject *so, PyObject *other) in set_difference()
1524 if (set_add_entry((PySetObject *)result, key, hash)) { in set_difference()
1537 rv = set_contains_entry((PySetObject *)other, key, hash); in set_difference()
1543 if (set_add_entry((PySetObject *)result, key, hash)) { in set_difference()
1553 set_difference_multi(PySetObject *so, PyObject *args) in set_difference_multi()
1568 if (set_difference_update_internal((PySetObject *)result, other)) { in set_difference_multi()
1581 set_sub(PySetObject *so, PyObject *other) in set_sub()
1589 set_isub(PySetObject *so, PyObject *other) in set_isub()
1600 set_symmetric_difference_update(PySetObject *so, PyObject *other) in set_symmetric_difference_update()
1602 PySetObject *otherset; in set_symmetric_difference_update()
1634 otherset = (PySetObject *)other; in set_symmetric_difference_update()
1636 otherset = (PySetObject *)make_new_set_basetype(Py_TYPE(so), other); in set_symmetric_difference_update()
1664 set_symmetric_difference(PySetObject *so, PyObject *other) in set_symmetric_difference()
1667 PySetObject *otherset; in set_symmetric_difference()
1669 otherset = (PySetObject *)make_new_set_basetype(Py_TYPE(so), other); in set_symmetric_difference()
1687 set_xor(PySetObject *so, PyObject *other) in set_xor()
1695 set_ixor(PySetObject *so, PyObject *other) in set_ixor()
1710 set_issubset(PySetObject *so, PyObject *other) in set_issubset()
1729 rv = set_contains_entry((PySetObject *)other, entry->key, entry->hash); in set_issubset()
1741 set_issuperset(PySetObject *so, PyObject *other) in set_issuperset()
1753 return set_issubset((PySetObject *)other, (PyObject *)so); in set_issuperset()
1759 set_richcompare(PySetObject *v, PyObject *w, int op) in set_richcompare()
1772 ((PySetObject *)w)->hash != -1 && in set_richcompare()
1773 v->hash != ((PySetObject *)w)->hash) in set_richcompare()
1802 set_add(PySetObject *so, PyObject *key) in set_add()
1815 set_contains(PySetObject *so, PyObject *key) in set_contains()
1835 set_direct_contains(PySetObject *so, PyObject *key) in set_direct_contains()
1848 set_remove(PySetObject *so, PyObject *key) in set_remove()
1880 set_discard(PySetObject *so, PyObject *key) in set_discard()
1907 set_reduce(PySetObject *so, PyObject *Py_UNUSED(ignored)) in set_reduce()
1934 set_sizeof(PySetObject *so, PyObject *Py_UNUSED(ignored)) in set_sizeof()
1946 set_init(PySetObject *self, PyObject *args, PyObject *kwds) in set_init()
1998 static PyObject *test_c_api(PySetObject *so, PyObject *Py_UNUSED(ignored));
2094 sizeof(PySetObject), /* tp_basicsize */
2118 offsetof(PySetObject, weakreflist), /* tp_weaklistoffset */
2194 sizeof(PySetObject), /* tp_basicsize */
2218 offsetof(PySetObject, weakreflist), /* tp_weaklistoffset */
2268 return set_clear_internal((PySetObject *)set); in PySet_Clear()
2278 return set_contains_key((PySetObject *)anyset, key); in PySet_Contains()
2288 return set_discard_key((PySetObject *)set, key); in PySet_Discard()
2299 return set_add_key((PySetObject *)anyset, key); in PySet_Add()
2317 if (set_next((PySetObject *)set, pos, &entry) == 0) in _PySet_NextEntry()
2331 return set_pop((PySetObject *)set, NULL); in PySet_Pop()
2341 return set_update_internal((PySetObject *)set, iterable); in _PySet_Update()
2360 test_c_api(PySetObject *so, PyObject *Py_UNUSED(ignored)) in test_c_api()