pub fn call0(&self, py: Python) -> PyResult<PyObject>
    {
        let args = PyTuple::empty(py).into_ptr();
        let result = unsafe {
            PyObject::from_owned_ptr_or_err(
                py, ffi::PyObject_Call(self.as_ptr(), args, std::ptr::null_mut()))
        };
        py.xdecref(args);
        result
    }
/// Calls the object without arguments.
/// This is equivalent to the Python expression: 'self()'
Calls the object without arguments.
This is equivalent to the Python expression: 'self()'
Calls the object without arguments . This is equivalent to the Python expression : ' self () '
pub fn call0(&self, py: Python) -> PyResult<PyObject>
    {
        let args = PyTuple::empty(py).into_ptr();
        let result = unsafe {
            PyObject::from_owned_ptr_or_err(
                py, ffi::PyObject_Call(self.as_ptr(), args, std::ptr::null_mut()))
        };
        py.xdecref(args);
        result
    }
pub fn call0 ( & self , py : Python ) -> PyResult < PyObject > { let args = PyTuple :: empty ( py ) . into_ptr ( ) ; let result = unsafe { PyObject :: from_owned_ptr_or_err ( py , ffi :: PyObject_Call ( self . as_ptr ( ) , args , std :: ptr :: null_mut ( ) ) ) } ; py . xdecref ( args ) ; result }
Calls the object without arguments.
Calls the object without arguments .
&self
py
Python
&self
py
Python