pub(crate) fn api_call_failed(py: Python) -> PyErr {
        #[cfg(debug_assertions)]
        {
            PyErr::fetch(py).expect("error return without exception set")
        }
        #[cfg(not(debug_assertions))]
        {
            use crate::exceptions::PySystemError;

            PyErr::fetch(py)
                .unwrap_or_else(|| PySystemError::new_err("error return without exception set"))
        }
    }
/// Retrieves the current error from the Python interpreter's global state.
///
/// The error is cleared from the Python interpreter.
/// If no error is set, returns a `SystemError` in release mode,
/// panics in debug mode.
Retrieves the current error from the Python interpreter's global state.
The error is cleared from the Python interpreter.
If no error is set, returns a `SystemError` in release mode,
panics in debug mode.
Retrieves the current error from the Python interpreter ' s global state . The error is cleared from the Python interpreter . If no error is set returns a ` SystemError ` in release mode panics in debug mode .
pub(crate) fn api_call_failed(py: Python) -> PyErr {
        #[cfg(debug_assertions)]
        {
            PyErr::fetch(py).expect("error return without exception set")
        }
        #[cfg(not(debug_assertions))]
        {
            use crate::exceptions::PySystemError;
            PyErr::fetch(py)
                .unwrap_or_else(|| PySystemError::new_err("error return without exception set"))
        }
    }
pub ( crate ) fn api_call_failed ( py : Python ) -> PyErr { # [ cfg ( debug_assertions ) ] { PyErr :: fetch ( py ) . expect ( " " ) } # [ cfg ( not ( debug_assertions ) ) ] { use crate :: exceptions :: PySystemError ; PyErr :: fetch ( py ) . unwrap_or_else ( | | PySystemError :: new_err ( " " ) ) } }
Retrieves the current error from the Python interpreter's global state.
Retrieves the current error from the Python interpreter ' s global state .
py
Python