#7251: Allow for Integer(3, parent = MyParent)
--------------------------------+-------------------------------------------
   Reporter:  nthiery           |       Owner:  somebody               
       Type:  enhancement       |      Status:  new                    
   Priority:  major             |   Milestone:  sage-4.2               
  Component:  basic arithmetic  |    Keywords:  Integer, IntegerWrapper
Work_issues:                    |      Author:  Nicolas M. ThiƩry      
   Reviewer:                    |      Merged:                         
--------------------------------+-------------------------------------------
 The attached patch allows for the creation of integers whose parents are
 not IntegerRing():

 {{{
             sage: n = Integer(3, parent = Primes())
             sage: n
             3
             sage: n.parent()
             Set of all prime numbers: 2, 3, 5, 7, ...
 }}}

 That's used in a couple places in the category code #5891, when
 illustrating how to create new parents like the set of prime integers. So
 this is quite urgent.

 Any better implementation welcome! I am fine also with having this work
 only for IntegerWrapper.

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