On Wed, Nov 4, 2009 at 2:43 PM, William Stein <wst...@gmail.com> wrote: > sage: Integers(7)(3) in ZZ > True
I found this one funny: sage: a = Integers(7)(3) sage: a in ZZ True sage: a in QQ False In the same vein: sage: b = Integers(11)(3) sage: a in ZZ True sage: b in ZZ True sage: a + b ... TypeError: unsupported operand parent(s) for '+': 'Ring of integers modulo 7' and 'Ring of integers modulo 11' On the bright side, the error message in this last one is very clear. Gonzalo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---