pub fn is_true(&self, py: Python) -> PyResult<bool> {
        let v = unsafe { ffi::PyObject_IsTrue(self.as_ptr()) };
        err::error_on_minusone(py, v)?;
        Ok(v != 0)
    }
/// Returns whether the object is considered to be true.
///
/// This is equivalent to the Python expression `bool(self)`.
Returns whether the object is considered to be true.
This is equivalent to the Python expression `bool(self)`.
Returns whether the object is considered to be true . This is equivalent to the Python expression ` bool ( self ) ` .
pub fn is_true(&self, py: Python) -> PyResult<bool> {
        let v = unsafe { ffi::PyObject_IsTrue(self.as_ptr()) };
        err::error_on_minusone(py, v)?;
        Ok(v != 0)
    }
pub fn is_true ( & self , py : Python ) -> PyResult < bool > { let v = unsafe { ffi :: PyObject_IsTrue ( self . as_ptr ( ) ) } ; err :: error_on_minusone ( py , v ) ? ; Ok ( v != 0 ) }
Returns whether the object is considered to be true.
Returns whether the object is considered to be true .
&self
py
Python