And the reason is...? Ralf
On 03/10/2009 07:34 PM, Robert Bradshaw wrote: > For the same reason that > > sage: z = ZZ(2) > sage: parent(z) > Integer Ring > sage: q = QQ(2) > sage: parent(q) > Rational Field > sage: z == q > True > sage: p = ZZ['x'](2) > sage: p == z > True > > > On Mar 10, 2009, at 11:23 AM, Ralf Hemmecke wrote: > >> Can somebody give me a convincing reason why I see True in the >> following >> session? >> >> sage: z = ZZ(2) >> sage: parent(z) >> Integer Ring >> sage: q = Mod(2, 7) >> sage: parent(q) >> Ring of integers modulo 7 >> sage: z == q >> True >> >> This is related to... >> http://sage.math.washington.edu/home/mhansen/sage/devel/sage/doc/ >> output/html/en/developer/coding_in_python.html#the-hash-special-method >> >> Ralf >> > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---