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

Function PyUnicode_Check

python27-sys/src/unicodeobject.rs:39–41  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

37
38#[inline(always)]
39pub unsafe fn PyUnicode_Check(op: *mut PyObject) -> c_int {
40 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_UNICODE_SUBCLASS)
41}
42
43#[inline(always)]
44pub unsafe fn PyUnicode_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