def get_var_type ( self , name ) : name = create_string_buffer ( name ) type_ = create_string_buffer ( MAXSTRLEN ) self . library . get_var_type . argtypes = [ c_char_p , c_char_p ] self . library . get_var_type ( name , type_ ) return type_ . value
how to know the type of python variable
Return type string compatible with numpy .
def get_var_type(self, name):
        """
        Return type string, compatible with numpy.
        """
        name = create_string_buffer(name)
        type_ = create_string_buffer(MAXSTRLEN)
        self.library.get_var_type.argtypes = [c_char_p, c_char_p]
        self.library.get_var_type(name, type_)
        return type_.value