php function "addslashes" / "removeslashes" in python

Jon Ribbens jon+usenet at unequivocal.co.uk
Wed Jul 10 19:33:10 EDT 2002


In article <tn9piugmaaq3g47c5h0i1jn7o32likjvq0 at 4ax.com>, Lowel Stern wrote:
>>if you're doing database, you really should learn to use bound
>>parameters...
>>
> I don't belive that MySQL can use that yet.

Err, it certainly can. Go get MySQL for Python from
http://sourceforge.net/projects/mysql-python

Do not try and do addslashes-style quoting yourself, it is error-prone
and you are just making things difficult for yourself.



More information about the Python-list mailing list