RE: convert tuple to string

Discussion in 'Python' started by Batista, Facundo, Aug 11, 2003.

  1. #- My Proglem is, I get after a query on a mysql database with
    #- module MySQLdb a
    #- tuple but I need this output from database as a string.
    #- can anybody help?

    The best way to convert to a string is with str().

    A general answer to a general question...

    .. Facundo
     
    Batista, Facundo, Aug 11, 2003
    #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. Michal Mikolajczyk
    Replies:
    1
    Views:
    828
    Larry Bates
    Apr 20, 2004
  2. Jeff Epler
    Replies:
    0
    Views:
    1,008
    Jeff Epler
    Apr 20, 2004
  3. Bill Scherer
    Replies:
    0
    Views:
    629
    Bill Scherer
    Apr 20, 2004
  4. Gregor Horvath

    Why tuple with one item is no tuple

    Gregor Horvath, Mar 15, 2005, in forum: Python
    Replies:
    37
    Views:
    849
    Antoon Pardon
    Mar 30, 2005
  5. Steve
    Replies:
    1
    Views:
    987
    Fredrik Lundh
    Dec 13, 2005
Loading...

Share This Page