#16314: Allows to construct subclasses of labelled tree from a labelled tree
-------------------------------------+-------------------------------------
Reporter: hivert | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.2
Component: combinatorics | Resolution:
Keywords: Trees label | Merged in:
Authors: Florent Hivert | Reviewers:
Report Upstream: N/A | Work issues:
Branch: u/hivert/tree- | Commit:
construct-improve | 06470f8520ea1bb0e6b6648edbfee578bdc409b4
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Florent Hivert', 'oldvalue': ''}):
* status: new => needs_review
* author: => Florent Hivert
* cc: boussica (added)
* component: PLEASE CHANGE => combinatorics
* keywords: => Trees label
* commit: => 06470f8520ea1bb0e6b6648edbfee578bdc409b4
* type: PLEASE CHANGE => defect
Old description:
New description:
Currently if we try to subclass a Labelled*Tree and then construct a
subclassed tree from a regular one, all the labels are lost:
{{{
sage: LBT = LabelledBinaryTree
sage: t1 = LBT([ LBT([LBT([], label=2),
....: LBT([], label=5)], label=6),
....: None], label=4); t1
4[6[2[., .], 5[., .]], .]
sage: class Foo(LabelledBinaryTree):
....: pass
sage: t2 = Foo(t1.parent(), t1); t2
None[None[None[., .], None[., .]], .]
}}}
We fix the problem.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/16314#comment:2>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.