#11904: Change default variable name for NumberField and NumberFieldElement -> 
PARI
conversion
-----------------------------+----------------------------------------------
   Reporter:  jdemeyer       |          Owner:  davidloeffler                   
      
       Type:  defect         |         Status:  needs_review                    
      
   Priority:  major          |      Milestone:  sage-4.7.3                      
      
  Component:  number fields  |       Keywords:                                  
      
Work_issues:                 |       Upstream:  N/A                             
      
   Reviewer:                 |         Author:  Jeroen Demeyer                  
      
     Merged:                 |   Dependencies:  #11130, #11321, #11891, #11890, 
#11836
-----------------------------+----------------------------------------------

Comment(by was):

 Quick question?   What happens if I do:
 {{{
 sage: K.<a> = NumberField(x^3 + 2)
 sage: R.<y> = PolynomialRing(K)
 sage: pari(a*y)
 }}}

 I would find out for myself, but with sage-4.7.2.alpha3, I get 13 hunks
 fail, so I can't apply the patch.  And I don't know which version of Sage
 this patch is against.


 If the above fails, isn't this a pretty bad approach to this problem?
 Wouldn't it be better to call the variable in PARI something like "__x" or
 "_x" (say), which is very very unlikely to class.   That would use the
 standard Sage/Python convention that one should not use stuff prefixed
 with underscores except in programming.

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