#12804: infinite loop in find method of a finite word
----------------------------------+-----------------------------------------
Reporter: slabbe | Owner: sage-combinat
Type: defect | Status: needs_info
Priority: major | Milestone: sage-5.1
Component: combinatorics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Mike Hansen
Authors: André Apitzsch | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Changes (by aapitzsch):
* status: needs_work => needs_info
Comment:
{{{
sage: u = Word([-1,-2,-3])
sage: v = Word([-2])
sage: vv = Word("-2")
sage: v
word: -2
sage: vv
word: -2
sage: u.find(v)
1
sage: u.find(vv)
-1
}}}
Is this the behaviour we expect or should {{{u.find(vv)}}} return 1, too?
Notice
{{{
sage: v == vv
False
sage: type(v)
<class 'sage.combinat.words.word.FiniteWord_list'>
sage: type(vv)
<class 'sage.combinat.words.word.FiniteWord_str'>
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12804#comment:5>
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.