very strange bug coercing to Unicode: need string or buffer, int found

Fredrik Lundh fredrik at pythonware.com
Wed Jun 21 09:47:19 EDT 2006


"bussiere maillist" wrote:

>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
>>>>

hint:

>>> "one" + u"two" + 3
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: coercing to Unicode: need string or buffer, int found

</F> 






More information about the Python-list mailing list