#18148: No lexicographic iterator over finite binary words
-----------------------------+----------------------------
Reporter: ncohen | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.6
Component: PLEASE CHANGE | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------
Sage implements an iterator on finite words n lexicographic order, and
such a thing is not possible. In particular:
{{{
sage: w=Words([0,1],infinite=False).__iter__()
sage: w.next()
word:
sage: w.next()
word: 0
sage:
sage: w.next()
word: 1
sage: w.next()
word: 00
}}}
I see two ways out: stop claiming that it is lexicographic, or remove the
function. What do you think?
Nathann
P.S.: To whoever types "git blame" (like and did) and notices that I am
the author of the function: please look at the whole commit, I only moved
it to a different place `:-PPP`
--
Ticket URL: <http://trac.sagemath.org/ticket/18148>
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.