#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, Volker Braun | Merged in:
Dependencies: #12533 | Stopgaps:
-----------------------------------------------+----------------------------
Comment (by vbraun):
Returning `None` as the value of a sum is not cool, stuff will almost
certainly break if you return nothing and not the neutral element in the
module. `None` is also the value of undefined variables (e.g. typos), this
is rather dangerous. This is why I switched sum to a method, so that it
can return the correct neutral element. As a side effect it saves you from
manually importing `Sum` and it makes it discoverable by tab completion.
I'll put in a deprecation for `Sum`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13646#comment:16>
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.