"bussiere maillist" <[EMAIL PROTECTED]> wrote: > ------=_Part_118629_1441854.1150895040355 > i truly didn't understand this error : > Traceback (most recent call last): > File "D:\Programmation\FrancePaquet\FrancePaquet.py", line 77, > in ? > cabtri = "zz" + chiffrescabtri + clefc > TypeError: coercing to Unicode: need string or buffer, int found
> > def calculclef(nombre): > if clef == 10: > clef = 0 > return clef > > clefb = calculclef(debutplage) > clefb = str(clefb) > print clefb > clefc = calculclef(chiffrescabtri) > cabtri = "zz" + chiffrescabtri + clefc Your calculclef function returns an integer. You explitly convert clefb into a string, but you never convert clefc into a string, hence the TypeError. max -- http://mail.python.org/mailman/listinfo/python-list