Bases: sage.structure.parent_gens.ParentWithAdditiveAbelianGens
Generic module class.
Return True if x is a module.
EXAMPLES:
sage: from sage.modules.module import is_Module
sage: M = FreeModule(RationalField(),30)
sage: is_Module(M)
True
sage: is_Module(10)
False
Return True if x is a vector space.
EXAMPLES:
sage: from sage.modules.module import is_Module, is_VectorSpace
sage: M = FreeModule(RationalField(),30)
sage: is_VectorSpace(M)
True
sage: M = FreeModule(IntegerRing(),30)
sage: is_Module(M)
True
sage: is_VectorSpace(M)
False