title: Python/psycopg2 WHERE IN statement
body: <p>What is the correct method to have the list (countryList) be available via %s in the SQL statement?</p>
  
  <pre><code># using psycopg2
  countryList=['UK','France']
  
  sql='SELECT * from countries WHERE country IN (%s)'
  data=[countryList]
  cur.execute(sql,data)
  </code></pre>
  
  <p>As it is now, it errors out after trying to run "WHERE country in (ARRAY[...])". Is there a way to do this other than through string manipulation?</p>
  
  <p>Thanks</p>