pub fn add<V>(&self, name: &str, value: V) -> PyResult<()>
    where
        V: IntoPy<PyObject>,
    {
        self.index()?
            .append(name)
            .expect("could not append __name__ to __all__");
        self.setattr(name, value.into_py(self.py()))
    }
/// Adds a member to the module.
///
/// This is a convenience function which can be used from the module's initialization function.
Adds a member to the module.
This is a convenience function which can be used from the module's initialization function.
Adds a member to the module . This is a convenience function which can be used from the module ' s initialization function .
pub fn add<V>(&self, name: &str, value: V) -> PyResult<()>
    where
        V: IntoPy<PyObject>,
    {
        self.index()?
            .append(name)
            .expect("could not append __name__ to __all__");
        self.setattr(name, value.into_py(self.py()))
    }
pub fn add < V > ( & self , name : & str , value : V ) -> PyResult < ( ) > where V : IntoPy < PyObject > , { self . index ( ) ? . append ( name ) . expect ( " " ) ; self . setattr ( name , value . into_py ( self . py ( ) ) ) }
Adds a member to the module.
Adds a member to the module .
&self
name
&str
value
V
&self
name
&str
value
V