String substitution VS proper mysql escaping

Νίκος nikos.the.gr33k at gmail.com
Sat Aug 28 15:10:01 EDT 2010


On 20 Αύγ, 09:04, Nik Gr <nikos.the.gr... at gmail.com> wrote:
> With regard to the "%" operator, it considers the string on the left to
> be a format string with multiple %blah things in it to replace. The
> thing on the right is a sequence of items to place into the format
> string.

Can you please clarify what you mean by that?

> In you usage above you're supplying "page" instead of "(page,)".
> The latter matches the .execute() method's requirements.

I tried it and "page" as a string and not a as a single element tuple
works ok.



More information about the Python-list mailing list