php function "addslashes" / "removeslashes" in python

Matthias Urlichs smurf at noris.de
Fri Jul 19 02:56:01 EDT 2002


Lowel Stern <ls2312 at netcom.com> wrote:

> Does anyone know if this exists already?
> 
For SQL?  Use the database interface properly.

http://www.python.org/topics/database/DatabaseAPI-2.0.html

If you really need to construct a SQL string manually, use the quote
method supplied by the database adapter you're using.

-- 
Matthias Urlichs
-- 
No cute .sig today...



More information about the Python-list mailing list