#6510: Adds __nonzero__ method to abelian groups
---------------------+------------------------------------------------------
Reporter: tsutton | Owner: tbd
Type: defect | Status: new
Priority: minor | Milestone: sage-4.1.1
Component: algebra | Keywords: abelian groups
Reviewer: roed | Author: tsutton
Merged: |
---------------------+------------------------------------------------------
{{{
sage: E=EllipticCurve([0,82])
sage: tor=E.torsion_subgroup()
sage: if tor:
... print tor.order()
1
}}}
We'd like to have tor evaluate to false in boolean context.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6510>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---