I helping a colleague try to wrap some magma code that uses verbose print statements. Apparently, just setting the verbose flag is not enough:
sage: magma.SetVerbose("Factorization",1) sage: magma.Factorization(56654654654464) [ <2, 11>, <1289, 1>, <21461137, 1> ] Instead, you have to use StdOutContext, which prints a whole bunch of extra stuff: sage: with StdOutContext(magma): ....: magma.Factorization( 56654654654464) ....: Append(~_sage_, 0); Append(~_sage_, 0); >>>_sage_[5]:=56654654654464; _sage_[5]:=56654654654464; >>>Append(~_sage_, 0); Append(~_sage_, 0); >>>_sage_[9]:=Factorization(_sage_[5]); _sage_[9]:=Factorization(_sage_[5]); Integer main factorization (primality of factors will be proved) Effort: 3 Seed: 1 168527 Number: 56654654654464 Entering SQUFOF 27663405593 >>>_sage_[5]:=0; _sage_[5]:=0; >>>_sage_[9]; _sage_[9]; [ <2, 11>, <1289, 1>, <21461137, 1> ] >>>[ <2, 11>, <1289, 1>, <21461137, 1> ] It seems like SetVerbose for magma is broken; is there something I'm missing? David -- 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