[mod_python] Problem with html quoted/unquoted

Deron Meranda deron.meranda at gmail.com
Tue May 23 12:05:32 EDT 2006

Also, a MySQLdb specific alternative:

  c.execute('select foo from bar where baz = %s' % db.escape(s))

The escape() method of the connection object will do the proper
quote-escaping, so you can use the %-style subtitution instead
of tuple-arguments.

But that is a MySQLdb feature, and not standard DBI.
Deron Meranda

More information about the Mod_python mailing list