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

Function PyFloat_CheckExact

python27-sys/src/floatobject.rs:29–32  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

27
28#[inline(always)]
29pub unsafe fn PyFloat_CheckExact(op: *mut PyObject) -> c_int {
30 let u: *mut PyTypeObject = &mut PyFloat_Type;
31 (Py_TYPE(op) == u) as c_int
32}
33
34pub const PyFloat_STR_PRECISION: c_int = 12;
35

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected