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

Function PyString_Check

python27-sys/src/stringobject.rs:28–30  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

26
27#[inline(always)]
28pub unsafe fn PyString_Check(op: *mut PyObject) -> c_int {
29 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_STRING_SUBCLASS)
30}
31
32#[inline(always)]
33pub unsafe fn PyString_CheckExact(op: *mut PyObject) -> c_int {

Callers

nothing calls this directly

Calls 2

PyType_FastSubclassFunction · 0.70
Py_TYPEFunction · 0.70

Tested by

no test coverage detected