Ticket #3421 (closed defect: fixed)
[with patch, positive review] MPolynomialRing_libsingular should accept longs in __call__
| Reported by: | malb | Owned by: | malb |
|---|---|---|---|
| Priority: | major | Milestone: | sage-3.0.3 |
| Component: | commutative algebra | Keywords: | |
| Cc: | burcin | Work issues: | |
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
This now works:
sage: P.<x,y> = PolynomialRing(QQ)
sage: P("111111111111111111111111111111111111111111111111111111111")
111111111111111111111111111111111111111111111111111111111
Attachments
Change History
comment:1 Changed 5 years ago by burcin
- Cc burcin added; brucin removed
- Summary changed from [with patch, needs review] MPolynomialRing_libsingular should accept longs in __call__ to [with patch, needs work] MPolynomialRing_libsingular should accept longs in __call__
- Milestone changed from sage-3.0.4 to sage-3.0.3
Changed 5 years ago by malb
-
attachment
libsingular_longs.patch
added
updated patch to address review
comment:2 Changed 5 years ago by malb
- Summary changed from [with patch, needs work] MPolynomialRing_libsingular should accept longs in __call__ to [with patch, needs review] MPolynomialRing_libsingular should accept longs in __call__
The updated patch addresses that bug.
Note: See
TracTickets for help on using
tickets.

This still fails on sage.math:
sage: P("31367566080") --------------------------------------------------------------------------- OverflowError Traceback (most recent call last) /home/burcin/sage-3.0.2/<ipython console> in <module>() /home/burcin/sage-3.0.2/multi_polynomial_libsingular.pyx in sage.rings.polynomial.multi_polynomial_libsingular.MPolynomialRing_libsingular.__call__ (sage/rings/polynomial/multi_polynomial_libsingular.cpp:4707)() /home/burcin/sage-3.0.2/parent.pyx in sage.structure.parent.Parent._coerce_c (sage/structure/parent.c:3400)() /home/burcin/sage-3.0.2/multi_polynomial_libsingular.pyx in sage.rings.polynomial.multi_polynomial_libsingular.MPolynomialRing_libsingular._coerce_c_impl (sage/rings/polynomial/multi_polynomial_libsingular.cpp:4283)() OverflowError: value too large to convert to int