#12351: AttributeError raised by method __eq__ of poset element
-------------------------------+--------------------------------------------
Reporter: slabbe | Owner: slabbe
Type: defect | Status: positive_review
Priority: major | Milestone: sage-5.0
Component: combinatorics | Keywords: poset
Work_issues: | Upstream: N/A
Reviewer: Sébastien Labbé | Author: Simon King
Merged: | Dependencies:
-------------------------------+--------------------------------------------
Changes (by slabbe):
* owner: sage-combinat => slabbe
Old description:
> Using sage-4.7.2
> {{{
> sage: m = WordMorphism('a->abb,b->ba')
> sage: w = m.fixed_point('a')
> sage: prefix = Word(list(w[:100]))
> sage: pals = prefix.palindromes()
> sage: poset = Poset((pals, lambda x,y: x.is_factor(y)))
> sage: H = poset.hasse_diagram()
> sage: H.plot()
> Traceback (most recent call last):
> ...
> AttributeError: 'int' object has no attribute 'parent'
> }}}
New description:
Using sage-4.7.2
{{{
sage: P = Poset([[1,2],[4],[3],[4],[]])
sage: P(0) == int(0)
Traceback (most recent call last):
...
AttributeError: 'int' object has no attribute 'parent'
}}}
This error is raised when ploting a poset :
{{{
sage: m = WordMorphism('a->abb,b->ba')
sage: w = m.fixed_point('a')
sage: prefix = Word(list(w[:100]))
sage: pals = prefix.palindromes()
sage: poset = Poset((pals, lambda x,y: x.is_factor(y)))
sage: H = poset.hasse_diagram()
sage: H.plot()
Traceback (most recent call last):
...
AttributeError: 'int' object has no attribute 'parent'
}}}
--
Comment:
Changed the ticket title and its description since the original problem
(hasse diagram ploting) might be (is?) solved indirectly by #10998.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12351#comment:5>
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.