#18159: cardinality must output Infinty or a Sage integer
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner:
Type: enhancement | Status: new
Priority: critical | Milestone: sage-6.6
Component: categories | Resolution:
Keywords: | Merged in:
Authors: Vincent Delecroix | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vdelecroix/18159 | 17924b8da8777805ca17289e00e62c3beca5a146
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Replying to [comment:10 ncohen]:
> What would you have against testing that it is an int, a long, an
Integer, or equal to (not 'is') infinity?
You do not want to see a Sage rational anymore? And what about `numpy`
integers, `pari` integers, `gp` integers, `gap` integers and `libgap`
integers?
Testing equality to infinity might be broken or you can have objects that
want to be equal to everybody (why not?).
The specification in `sage.categories.sets_cat` is:
{{{
``self.cardinality()`` should return the cardinality of the set
``self`` as a sage :class:`Integer` or as ``infinity``.
}}}
If you complain that it should not be the case then you should argue why.
And not telling me to argue why not.
Vincent
--
Ticket URL: <http://trac.sagemath.org/ticket/18159#comment:11>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.