#11429: Count integral points without PALP
----------------------------------+-----------------------------------------
Reporter: vbraun | Owner: AlexGhitza
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.0
Component: geometry | Keywords: sd31
Work_issues: | Upstream: N/A
Reviewer: Andrey Novoseltsev | Author: Volker Braun
Merged: | Dependencies: #11312, #9958
----------------------------------+-----------------------------------------
Changes (by jdemeyer):
* status: positive_review => needs_work
* dependencies: #11312 => #11312, #9958
Comment:
When running this with Python-2.7.2 (#9958), there is a doctest failure:
{{{
sage -t -force_lib devel/sage/sage/geometry/integral_points.pyx
**********************************************************************
File "/mnt/usb1/scratch/jdemeyer/merger/sage-5.0.beta1/devel/sage-
main/sage/geometry/integral_points.pyx", line 668:
sage: Inequality_int([2,3,7], -5*10^50, [10]*3)
Expected:
Traceback (most recent call last):
...
OverflowError: long int too large to convert to int
Got:
Traceback (most recent call last):
File
"/mnt/usb1/scratch/jdemeyer/merger/sage-5.0.beta1/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/mnt/usb1/scratch/jdemeyer/merger/sage-5.0.beta1/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/mnt/usb1/scratch/jdemeyer/merger/sage-5.0.beta1/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_14[7]>", line 1, in <module>
Inequality_int([Integer(2),Integer(3),Integer(7)],
-Integer(5)*Integer(10)**Integer(50), [Integer(10)]*Integer(3))###line
668:
sage: Inequality_int([2,3,7], -5*10^50, [10]*3)
File "integral_points.pyx", line 705, in
sage.geometry.integral_points.Inequality_int.__cinit__
(sage/geometry/integral_points.c:495
0)
self.b = self._to_int(b)
File "integral_points.pyx", line 685, in
sage.geometry.integral_points.Inequality_int._to_int
(sage/geometry/integral_points.c:4765)
return int(x) # raises OverflowError in Cython if necessary
OverflowError: Python int too large to convert to C long
**********************************************************************
}}}
Since Python-2.7 will surely be merged in sage-5.0.beta0, you should fix
the error message.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11429#comment:18>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.