#7400: ElementWrapper does not copy the wrapped values when copied
----------------------+-----------------------------------------------------
Reporter: hivert | Owner: hivert
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.3
Component: misc | Keywords: copy, ElementWrapper
Work_issues: | Author: Florent Hivert
Upstream: N/A | Reviewer: Nicolas M. ThiƩry
Merged: |
----------------------+-----------------------------------------------------
Comment(by hivert):
Replying to [comment:4 nthiery]:
> Up to two small comments below, this is looking good:
>
> The implementation of copy can probably be simplified a bit by using
"super":
This does not work if you inherits from {{{Element}}} rather than from
{{{SageObject}}}. I consider this as a bug in {{{Element}}} but I'm not
sure. I'm waiting for answer on [http://groups.google.fr/group/sage-
devel/browse_thread/thread/d13fab1cd0bf79bc sage-devel]
> In the ElementWrapperTester: __repr__ => _repr_
I had to write {{{__repr__}}} because {{{ElementWrapper}}} also has
{{{__repr__}}} fixed both...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7400#comment:6>
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.