python, psycopg2, and bound parameters
<p>I have this guy:</p>

<pre><code>query = 'DELETE FROM boyd.%s WHERE teamid = %s AND id = %s AND year = %s' % (statstype, '%s', '%s', '%s')
self.executequery(query, values[0:3])
</code></pre>

<p>Which strikes me as ugly. The first %s is actually supplied by the variable, the other three are bound variables: do I really need to go <code>% (statstype, '%s', '%s', '%s')</code>? Is there a more... pythonic approach here?</p>
