title: Python operators pymysql
body: <p>I'm having some bad time with pymysql and python operators.
  I don't know much about python operator though.</p>
  
  <p>I want to insert into the database some values. The code:</p>
  
  <pre><code>import pymysql
  conn = pymysql.connect(host='127.0.0.1', unix_socket='/Applications/MAMP/tmp/mysql/mysql.sock', user='root', passwd='root', db='db2', charset='utf8')
  cur = conn.cursor()
  v = (123 , 'foobarfoobar', 'foo', 1241, 3, 132 )
  cur.execute("INSERT INTO celebs(num_id, Text, Handle, Followers, RT, Timestamp) VALUES (?,?,?,?,?,?)", v)
  </code></pre>
  
  <p>For the record mySQL structure is <code>INT (PRI), INT, TEXT, VARCHAR, INT, INT, VARCHAR</code>.</p>
  
  <p>I run this and I get <code>TypeError: not all arguments converted during string formatting</code></p>
  
  <p>Any details how to solve it and possibly some explanation how operator work in python.
  In php is easier I think: <code>$a = 22; echo "$a days";</code></p>
  
  <p>Update:</p>
  
  <p>I'm using directly the Insert into and it still doesn't insert the data:</p>
  
  <pre><code>cur.execute("INSERT INTO celebs (num_id, Text, Handle, Followers, RT, Timestamp) VALUES (123 , 'foobarfoobar', 'foo', 1241, 3, 132 );"  )
  </code></pre>