-
-
Notifications
You must be signed in to change notification settings - Fork 673
Closed
Description
---------- 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
CC: @sagetrac-abmasse
Component: combinatorics
Author: Sébastien Labbé
Reviewer: Alexandre Blondin Massé
Merged: sage-4.4.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/8574