#12351: AttributeError when ploting a poset
-----------------------------+----------------------------------------------
   Reporter:  slabbe         |          Owner:  sage-combinat
       Type:  defect         |         Status:  needs_review 
   Priority:  major          |      Milestone:  sage-5.0     
  Component:  combinatorics  |       Keywords:  poset        
Work_issues:                 |       Upstream:  N/A          
   Reviewer:                 |         Author:  Simon King   
     Merged:                 |   Dependencies:               
-----------------------------+----------------------------------------------
Changes (by newvalueoldvalue):

  * status:  new => needs_review
  * author:  => Simon King


Comment:

 The problem was in the comparison of poset elements. Comparing a poset
 element with any object that has no parent (for example, comparison with a
 Python int) resulted in an error.

 I thought the straight forward way to fix it is: Use
 `sage.structure.element.parent(bla)` instead of `bla.parent()`.

 With the patch, plotting the Hasse diagram  works, and the bug fix is
 doctested. Needs review, then!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12351#comment:1>
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