#7251: Allow for Integer(3, parent = MyParent)
--------------------------------+-------------------------------------------
Reporter: nthiery | Owner: nthiery
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:
--------------------------------+-------------------------------------------
Comment(by nthiery):
Replying to [comment:4 mhansen]:
> I may be mistaken, but I don't think the IntegerWrapper objects use the
integer pool. Robert?
I double checked our use cases, and altogether we indeed only need the
feature
{{{
sage: IntegerWrapper(3, parent = Primes())
}}}
with the rest as in the description.
However, I have a problem, since if I move the __init__ to IntegerWrapper,
then __cinit__ of Integer still gets called, and complains about the
parent argument. Robert, Mike: would you mind investigating what's the
right way for implementing this (I am not so familiar with cython
initialization)?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7251#comment:7>
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
-~----------~----~----~----~------~----~------~--~---