#10292: padics, precision, list() and printing
----------------------------+-----------------------------------------------
   Reporter:  roed          |          Owner:  roed        
       Type:  defect        |         Status:  needs_review
   Priority:  minor         |      Milestone:  sage-4.8    
  Component:  padics        |       Keywords:              
Work_issues:                |       Upstream:  N/A         
   Reviewer:  Johan Bosman  |         Author:  David Roe   
     Merged:                |   Dependencies:              
----------------------------+-----------------------------------------------
Changes (by newvalueoldvalue):

  * reviewer:  => Johan Bosman
  * author:  => David Roe


Old description:

> {{{
> sage: E = EllipticCurve('37a')
> sage: R = E.padic_regulator(7)
> sage: len(R.list())
> 37
> sage: s = str(R)
> sage: len(R.list())
> 19
> }}}
>
> Similarly:
> {{{
> sage: E = EllipticCurve('37a')
> sage: R = E.padic_regulator(7)
> sage: len(R.list())
> 37
> sage: R.precision_absolute()
> 20
> sage: len(R.list())
> 37
> sage: R.precision_relative()
> 19
> sage: len(R.list())
> 19
> }}}
>
> This is likely due to `_normalize` not getting called when necessary at
> object creation.

New description:

 {{{
 sage: E = EllipticCurve('37a')
 sage: R = E.padic_regulator(7)
 sage: len(R.list())
 37
 sage: s = str(R)
 sage: len(R.list())
 19
 }}}

 Similarly:
 {{{
 sage: E = EllipticCurve('37a')
 sage: R = E.padic_regulator(7)
 sage: len(R.list())
 37
 sage: R.precision_absolute()
 20
 sage: len(R.list())
 37
 sage: R.precision_relative()
 19
 sage: len(R.list())
 19
 }}}

 This is likely due to `_normalize` not getting called when necessary at
 object creation.

 Apply:
  1. [attachment:10292.patch]
  1. [attachment:10292_review.patch]
 to the sage repository.

--

Comment:

 I've uploaded a patch that fixes the docstring formatting.  If you agree
 with this, this can be given a positive_review.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10292#comment:2>
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.

Reply via email to