Hello,

When I was working on #590, I ran into this issue:

sage: class FooRational(Rational): pass
....:
sage: FooRational(2)
2

sage: class FooInteger(Integer): pass
....:
sage: FooInteger(2)
0

Now, if I make the following class in integer.pyx:

cdef class Integer2(Integer):
    pass

Then the following works:

sage: class FooInteger2(Integer2):
....:
sage: FooInteger2(2)
2


Can anyone tell me what is going on here?

--Mike

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to