#6561: Trivial bug with cartesian product of an empty list of iterators
---------------------------+------------------------------------------------
Reporter: davidloeffler | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: misc | Keywords:
Reviewer: | Author:
Merged: |
---------------------------+------------------------------------------------
The function cartesian_product_iterator (which takes a list of iterators
as input) gets the wrong answer when given an empty list. It returns an
empty list; but the cartesian product of an empty list of iterators should
be *the list containing the empty tuple*.
The current behaviour means as a consequence that listing the elements of
the zero finitely-presented module returns an empty list, rather than [0]
which is clearly the right answer.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6561>
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
-~----------~----~----~----~------~----~------~--~---