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

Discussion in 'Python' started by Fredrik Lundh, Jun 21, 2006.

  1. "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>
     
    Fredrik Lundh, Jun 21, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stuart Forsyth
    Replies:
    1
    Views:
    4,997
    vincent wehren
    Nov 13, 2003
  2. Randall Parker
    Replies:
    2
    Views:
    843
    Fredrik Lundh
    Mar 22, 2006
  3. Max Erickson
    Replies:
    0
    Views:
    1,302
    Max Erickson
    Jun 21, 2006
  4. Jon Bowlas
    Replies:
    6
    Views:
    20,241
    Jon Bowlas
    Jul 27, 2006
  5. special_dragonfly

    SQLite and coercing to Unicode - please help.

    special_dragonfly, Sep 6, 2007, in forum: Python
    Replies:
    3
    Views:
    367
    Steve Holden
    Sep 6, 2007
Loading...

Share This Page