(self, elem, M=None)
return elem
Convert ``elem`` into internal representation of this module.

        If ``M`` is not None, it should be a module containing it.
Convert ``elem`` into internal representation of this module.
Convert elem into internal representation of this module .
def convert(self, elem, M=None):
        """
        Convert ``elem`` into internal representation of this module.

        If ``M`` is not None, it should be a module containing it.
        """
        if not isinstance(elem, self.dtype):
            raise CoercionFailed
        return elem
def convert ( self , elem , M = None ) : if not isinstance ( elem , self . dtype ) : raise CoercionFailed return elem