We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c80376 commit 49bf43cCopy full SHA for 49bf43c
src/sage/rings/integer.pyx
@@ -1204,7 +1204,9 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
1204
return x
1205
1206
def __int__(self):
1207
- return mpz_get_pyintlong(self.value)
+ # TODO -- this crashes on sage.math, since it is evidently written incorrectly.
1208
+ #return mpz_get_pyintlong(self.value)
1209
+ return int(mpz_get_pylong(self.value))
1210
1211
def __long__(self):
1212
return mpz_get_pylong(self.value)
src/sage/version.py
@@ -1,2 +1,2 @@
1
"""nodoctests"""
2
-version='2.8.3.rc3'; date='2007-08-29'
+version='2.8.3.rc4'; date='2007-08-30'
0 commit comments