MySQLdb + Python + quotes

Lars Hoeyrup Jensen robinhat at rhk.dk
Tue May 9 17:59:29 EDT 2000


Thank you, Jeff. Just what I was looking for!

Best regards from Lars


Jeff Bauer wrote:

> >>> import MySQLdb
> >>> MySQLdb.escape_string("""some '"' quotes""")
> 'some \\\'\\"\\\' quotes'
>
> Jeff Bauer
> Rubicon Research




More information about the Python-list mailing list