#4406: [with patch, needs work] make polynomial truncation cpdef method
----------------------+-----------------------------------------------------
 Reporter:  robertwb  |        Owner:  tbd       
     Type:  defect    |       Status:  new       
 Priority:  major     |    Milestone:  sage-3.2.1
Component:  algebra   |   Resolution:            
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by mabshoff):

  * summary:  [with patch, needs review] make polynomial truncation cpdef
              method => [with patch, needs work] make
              polynomial truncation cpdef method
  * milestone:  sage-3.2 => sage-3.2.1

Comment:

 This patch causes the following doctest failures:
 {{{
         sage -t -long devel/sage/sage/schemes/elliptic_curves/padics.py #
 1 doctests failed
         sage -t -long devel/sage/sage/rings/power_series_ring_element.pyx
 # 2 doctests failed
         sage -t -long devel/sage/sage/rings/power_series_poly.pyx # 2
 doctests failed
         sage -t -long devel/sage/sage/modular/modform/theta.py # 1
 doctests failed
         sage -t -long devel/sage/sage/modular/modform/j_invariant.py # 1
 doctests failed
         sage -t -long devel/sage/sage/crypto/lfsr.py # 5 doctests failed
 }}}
 The error seems to always be
 {{{
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.alpha2/local/lib/python2.5/doctest.py", line 1228, in __run
         compileflags, 1) in test.globs
       File "<doctest __main__.example_11[3]>", line 8, in <module>
         g = Rx(g, len(g))
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.alpha2/local/lib/python2.5/site-
 packages/sage/rings/power_series_ring.py", line 326, in __call__
         return self.__power_series_class(self, f, prec, check=check)
       File "power_series_poly.pyx", line 47, in
 sage.rings.power_series_poly.PowerSeries_poly.__init__
 (sage/rings/power_series_poly.c:2073)
       File "polynomial_element.pyx", line 3928, in
 sage.rings.polynomial.polynomial_element.Polynomial.truncate
 (sage/rings/polynomial/polynomial_element.c:25338)
       File "polynomial_gf2x.pyx", line 43, in
 sage.rings.polynomial.polynomial_gf2x.Polynomial_GF2X.__getitem__
 (sage/rings/polynomial/polynomial_gf2x.cpp:6652)
     TypeError: an integer is required
 }}}

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4406#comment:3>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to