#12804: infinite loop in find method of a finite word
----------------------------------+-----------------------------------------
Reporter: slabbe | Owner: sage-combinat
Type: defect | Status: needs_work
Priority: major | Milestone: sage-5.0
Component: combinatorics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: André Apitzsch | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Changes (by tjolivet):
* status: needs_review => needs_work
Comment:
Hi,
I also thought about using the python string methods to fix this, but the
`Word` class allows arbitrary alphabet so we cannot use the method
directly.
The problem arises for example with `u = Word([-1,-2,-3])`, where `str(u)`
returns the string `'-1,-2,-3'`:
{{{
sage: u = Word([-1,-2,-3])
sage: v = Word([-2])
sage: u.find(v)
1
sage: str(u).find(str(v))
3
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12804#comment:2>
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.