#8967: Make extensions of general rings work in the same way as they do for 
number
fields
------------------------+---------------------------------------------------
   Reporter:  fwclarke  |       Owner:  AlexGhitza
       Type:  defect    |      Status:  new       
   Priority:  major     |   Milestone:            
  Component:  algebra   |    Keywords:            
     Author:            |    Upstream:  N/A       
   Reviewer:            |      Merged:            
Work_issues:            |  
------------------------+---------------------------------------------------
 {{{
 sage: P.<t> = GF(5)[]
 sage: GF(5).extension(t^2 - 2, name='a')
 Univariate Quotient Polynomial Ring in a over Finite Field of size 5 with
 modulus a^2 + 3
 sage: F.<a> = GF(5).extension(t^2 - 2)
 Traceback (most recent call last)
 ...
 ValueError: variable names must be alphanumeric, but one is '('a' which is
 not.
 }}}
 and

 {{{
 sage: GF(5).extension(x^2 - 2, name='a')
 Traceback (most recent call last)
 ...
 AttributeError: 'sage.symbolic.expression.Expression' object has no
 attribute 'list'
 }}}
 The patch solves both these problems, and provides a more useful error
 message for mistakes like `GF(5).extension("not_a_poly", name='a'),` by
 splicing in code from the number field version.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8967>
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