Pdb query Out 24 select toid from wordhidden where fromid Pdb wordid t

1
2
3
4
5
6
(Pdb) query
Out[24]: 'select toid from wordhidden where fromid=%d'
(Pdb) wordid, type(wordid)
Out[24]: (1768, <type 'int'>)
(Pdb) cur.execute(query,(wordid,))
*** TypeError: %d format: a number is required, not str