Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ PyUnicode_CheckExact
Function
PyUnicode_CheckExact
python3-sys/src/unicodeobject.rs:28–30 ·
view source on GitHub ↗
(op: *mut PyObject)
Source
from the content-addressed store, hash-verified
26
27
#[inline(always)]
28
pub unsafe fn PyUnicode_CheckExact(op: *mut PyObject) -> c_int {
29
(Py_TYPE(op) == &mut PyUnicode_Type) as c_int
30
}
31
32
pub const Py_UNICODE_REPLACEMENT_CHARACTER: Py_UCS4 = 0xFFFD;
33
Callers
nothing calls this directly
Calls
1
Py_TYPE
Function · 0.70
Tested by
no test coverage detected