(o: *mut PyObject)
| 525 | #[cfg(not(Py_LIMITED_API))] |
| 526 | #[inline] |
| 527 | pub unsafe fn PyUnicode_GET_LENGTH(o: *mut PyObject) -> Py_ssize_t { |
| 528 | debug_assert!(PyUnicode_Check(o) > 0); |
| 529 | #[cfg(not(Py_3_12))] |
| 530 | debug_assert!(PyUnicode_IS_READY(o)); |
| 531 | (*(o as *mut PyASCIIObject)).length |
| 532 | } |
| 533 | |
| 534 | #[cfg(not(any(Py_LIMITED_API, Py_3_12)))] |
| 535 | #[inline] |