Oh shoot that's a really silly implementation of intersection. One should of course just do
def intersect_submodules(M,S1,S2): F1=span([b.lift() for b in S1.gens()]) F2=span([b.lift() for b in S2.gens()]) M.submodule([M(b) for b in F1.intersection(F2).gens()]) -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org