#8574: Length of a finite word defined by an iterator is broken
-----------------------------+----------------------------------------------
   Reporter:  slabbe         |       Owner:  slabbe  
       Type:  defect         |      Status:  new     
   Priority:  major          |   Milestone:  sage-5.0
  Component:  combinatorics  |    Keywords:          
     Author:                 |    Upstream:  N/A     
   Reviewer:                 |      Merged:          
Work_issues:                 |  
-----------------------------+----------------------------------------------
 {{{


 ---------- Forwarded message ----------
 From: Timo Jolivet
 Date: 2010/3/20
 Subject: bug WordMorphism ?


 Un bug bizarre :

 sage: s = WordMorphism('0->0,1->%s'%('1'*100))
 sage: s(
 KeyboardInterrupt
 sage: s = WordMorphism('0->000,1->%s'%('1'*100))
 sage: s('0')
 word: 000
 sage: s('1')
 word: 1111111111111111111111111111111111111111...
 sage: len(s('0'))
 3
 sage: len(s('1'))
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 /slabbe_hacked_macbook/<ipython console> in <module>()
 TypeError: an integer is required



 C'est d'autant plus bizarre que le code suivant marche :

 sage: len(Word('1'*100))
 100

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8574>
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.

Reply via email to