pub fn acquire_gil(&mut self) -> Python<'a> {
        match self.py {
            Some(py) => py,
            None => {
                let gil = GILGuard::acquire();
                let py = unsafe { Python::assume_gil_acquired() };

                self.gil = Some(gil);
                self.py = Some(py);

                py
            }
        }
    }
/// Ensure the Python GIL is acquired, returning a handle on the interpreter.
Ensure the Python GIL is acquired, returning a handle on the interpreter.
Ensure the Python GIL is acquired returning a handle on the interpreter .
pub fn acquire_gil(&mut self) -> Python<'a> {
        match self.py {
            Some(py) => py,
            None => {
                let gil = GILGuard::acquire();
                let py = unsafe { Python::assume_gil_acquired() };
                self.gil = Some(gil);
                self.py = Some(py);
                py
            }
        }
    }
pub fn acquire_gil ( & mut self ) -> Python < ' a > { match self . py { Some ( py ) => py , None => { let gil = GILGuard :: acquire ( ) ; let py = unsafe { Python :: assume_gil_acquired ( ) } ; self . gil = Some ( gil ) ; self . py = Some ( py ) ; py } } }
Ensure the Python GIL is acquired, returning a handle on the interpreter.
Ensure the Python GIL is acquired returning a handle on the interpreter .
&mut self