#8186: iterated_right_palindromic_closure of a finite word should return a 
finite
word
-----------------------------+----------------------------------------------
   Reporter:  slabbe         |       Owner:  sage-combinat
       Type:  defect         |      Status:  new          
   Priority:  major          |   Milestone:  sage-4.3.2   
  Component:  combinatorics  |    Keywords:               
     Author:                 |    Upstream:  N/A          
   Reviewer:                 |      Merged:               
Work_issues:                 |  
-----------------------------+----------------------------------------------
 {{{
 Le 5 février 2010 00:33, Alexandre Blondin Massé a écrit :
 > Salut, Seb !
 > C'est bizarre, j'obtiens ceci dans Sage:
 >
 > sage: w = Word('abaabababababab')
 > sage: u = w.iterated_right_palindromic_closure()
 > sage: print u.length()
 > None
 > sage: len(u)
 >
 ---------------------------------------------------------------------------
 > TypeError                                 Traceback (most recent call
 last)
 >
 > /Users/alexandre/<ipython console> in <module>()
 >
 > TypeError: an integer is required
 > sage:
 >
 > J'imagine que c'est dû au fait que c'est un mot implémenté par un
 itérateur
 > avec cache, mais ce n'est pas très pratique, on devrait pouvoir savoir
 la
 > longueur d'un tel mot. Y a-t-il moyen de le faire ? Peut-on forcer
 > l'évaluation ? Merci !
 > Alex
 }}}

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