On Feb 21, 2010, at 3:26 PM, David Roe wrote:

Currently mod and Mod are the same function. I think that this should remain true, if only for backward compatibility.

There seem to be plenty of ways to construct elements of Z/nZ quickly. I would say that the only thing in question is what the behavior of a.mod(b) should be: the same as the global function mod, or the same as the method __mod__ that defines the % operator.

Yep. Note that mod is not an element of Integer, but of Ring Element, and takes an ideal in general (returning a representative in that ideal). Changing this to return an element of the quotient ring instead could be very backwards incompatible.

- Robert


--
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

Reply via email to