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

Function PyUnicode_READY

python3-sys/src/unicodeobject.rs:544–558  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

542#[cfg(not(Py_LIMITED_API))]
543#[inline]
544pub unsafe fn PyUnicode_READY(o: *mut PyObject) -> c_int {
545 debug_assert!(PyUnicode_Check(o) > 0);
546 #[cfg(Py_3_12)]
547 {
548 return 0;
549 }
550 #[cfg(not(Py_3_12))]
551 {
552 if PyUnicode_IS_READY(o) {
553 0
554 } else {
555 _PyUnicode_Ready(o)
556 }
557 }
558}

Callers 1

data_implMethod · 0.85

Calls 1

PyUnicode_IS_READYFunction · 0.85

Tested by

no test coverage detected