MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PySet_Check

Function PySet_Check

python3-sys/src/setobject.rs:42–44  ·  view source on GitHub ↗
(ob: *mut PyObject)

Source from the content-addressed store, hash-verified

40
41#[inline]
42pub unsafe fn PySet_Check(ob: *mut PyObject) -> c_int {
43 (Py_TYPE(ob) == &mut PySet_Type || PyType_IsSubtype(Py_TYPE(ob), &mut PySet_Type) != 0) as c_int
44}
45
46#[cfg_attr(windows, link(name = "pythonXY"))]
47extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected