#13646: Bug in p.add_constraint (when input is True/False)
--------------------------------------+-------------------------------------
       Reporter:  ncohen              |         Owner:  ncohen      
           Type:  defect              |        Status:  needs_review
       Priority:  major               |     Milestone:  sage-5.5    
      Component:  linear programming  |    Resolution:              
       Keywords:                      |   Work issues:              
Report Upstream:  N/A                 |     Reviewers:              
        Authors:  Nathann Cohen       |     Merged in:              
   Dependencies:                      |      Stopgaps:              
--------------------------------------+-------------------------------------
Changes (by ncohen):

  * status:  needs_work => needs_review


Comment:

 Actually the patch works. My version of Sage doesn't pass all tests, but
 it seems to come from somewhere else..

 > Don't just raise the error on some hand-picked "wrong" values. Add an
 else: branch to the last if-statement in __init__ as a catch-all.

 Well, True and False are what is returned when the left side is an
 integer, and only then. Plus I have no idea how to solve this bug in any
 different way `O_o`

 I do not get what you mean by your ``Add an else: branch to the last if-
 statement in __init__ as a catch-all.`` either `O_o`

 Nathann

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

Reply via email to