#10651: Small fix in `_an_element_from_iterator` in EnumeratedSets
--------------------------+-------------------------------------------------
Reporter: nborie | Owner: nborie
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.6.2
Component: categories | Keywords: days28, empty set, EmptySetError
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------+-------------------------------------------------
Comment(by nborie):
Good point. I will ask today Nicolas what does he think about that... I
don't really know the specifications for the Test Suite and how deal
exactly with such corner case.
Florent did this with FiniteEnumeratedSet (The user know a priori that the
set is finite...)
{{{
sage: FiniteEnumeratedSet([])
{}
sage: FiniteEnumeratedSet([]).some_elements()
<generator object _some_elements_from_iterator at 0xb433464>
}}}
I will give an answer shortly for that.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10651#comment:4>
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.