Home
last modified time | relevance | path

Searched refs:PySet_Add (Results 1 – 25 of 28) sorted by relevance

12

/external/python/cpython3/Include/
Dsetobject.h83 PyAPI_FUNC(int) PySet_Add(PyObject *set, PyObject *key);
/external/python/cpython2/Include/
Dsetobject.h90 PyAPI_FUNC(int) PySet_Add(PyObject *set, PyObject *key);
/external/python/cpython3/Modules/
D_abc.c199 int ret = PySet_Add(set, ref); in _add_to_weak_set()
342 (is_abstract && PySet_Add(abstracts, key) < 0)) { in compute_abstract_methods()
392 (is_abstract && PySet_Add(abstracts, key) < 0)) in compute_abstract_methods()
Dsignalmodule.c908 if (PySet_Add(result, signum) == -1) { in sigset_to_set()
D_hashopenssl.c1755 if (PySet_Add(state->set, py_name) != 0) { in _openssl_hash_name_mapper()
D_ssl.c5617 err = PySet_Add(retval, oid); in parseKeyUsage()
5741 if (PySet_Add(result, tup) == -1) { in _ssl_enum_certificates_impl()
5829 if (PySet_Add(result, tup) == -1) { in _ssl_enum_crls_impl()
D_asynciomodule.c162 if (PySet_Add(iscoroutine_typecache, (PyObject*) Py_TYPE(coro))) { in _is_coroutine()
/external/python/cpython2/Doc/c-api/
Dset.rst105 building-up new frozensets with :meth:`PySet_Add`.
138 .. c:function:: int PySet_Add(PyObject *set, PyObject *key)
/external/python/cpython3/Objects/
Dsetobject.c2292 PySet_Add(PyObject *anyset, PyObject *key) in PySet_Add() function
2398 assertRaises(PySet_Add(ob, dup) == -1, PyExc_TypeError); in test_c_api()
2404 assert(PySet_Add(ob, elem) == 0); in test_c_api()
2422 assert(PySet_Add(f, elem) == 0); in test_c_api()
2424 assertRaises(PySet_Add(f, elem) == -1, PyExc_SystemError); in test_c_api()
Ddictobject.c4374 if (PySet_Add(result, key)) { in _PyDictView_Intersect()
/external/python/cpython2/Objects/
Dsetobject.c2325 PySet_Add(PyObject *anyset, PyObject *key) in PySet_Add() function
2436 assertRaises(PySet_Add(ob, dup) == -1, PyExc_TypeError); in test_c_api()
2442 assert(PySet_Add(ob, elem) == 0); in test_c_api()
2460 assert(PySet_Add(f, elem) == 0); in test_c_api()
2462 assertRaises(PySet_Add(f, elem) == -1, PyExc_SystemError); in test_c_api()
/external/python/cpython3/Python/
Dsymtable.c509 if (PySet_Add(global, name) < 0) in analyze_name()
530 return PySet_Add(free, name) >= 0; in analyze_name()
534 if (PySet_Add(local, name) < 0) in analyze_name()
548 return PySet_Add(free, name) >= 0; in analyze_name()
827 if (PySet_Add(newbound, __class__) < 0) in analyze_block()
Dpythonrun.c948 if (value_id == NULL || PySet_Add(seen, value_id) == -1) in print_exception_recursive()
Dmarshal.c1284 if (PySet_Add(v, v2) == -1) { in r_object()
Dceval.c1810 err = PySet_Add(set, v); in _PyEval_EvalFrameDefault()
2816 err = PySet_Add(set, item); in _PyEval_EvalFrameDefault()
/external/python/cpython3/Doc/c-api/
Dset.rst124 .. c:function:: int PySet_Add(PyObject *set, PyObject *key)
/external/python/cpython2/Modules/
D_hashopenssl.c792 if (PySet_Add(state->set, py_name) != 0) { in _openssl_hash_name_mapper()
D_ssl.c3822 err = PySet_Add(retval, oid); in parseKeyUsage()
/external/python/cpython3/PC/
Dpython3.def528 PySet_Add=python39.PySet_Add
/external/python/cpython2/PC/os2emx/
Dpython27.def512 "PySet_Add"
/external/python/cpython3/Doc/data/
Drefcounts.dat2034 PySet_Add:int:::
2035 PySet_Add:PyObject*:set:0:
2036 PySet_Add:PyObject*:key:+1:
/external/python/cpython2/Python/
Dmarshal.c985 if (PySet_Add(v, v2) == -1) { in r_object()
Dceval.c1636 err = PySet_Add(v, w); in PyEval_EvalFrameEx()
2498 err = PySet_Add(x, w); in PyEval_EvalFrameEx()
/external/python/pybind11/include/pybind11/
Dpytypes.h1362 return PySet_Add(m_ptr, detail::object_or_cast(std::forward<T>(val)).ptr()) == 0; in add()
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst5279 ``PySet_Add()`` can now modify a newly created frozenset. Similarly to

12