Problems replacing \ with \\

Michael Torrie torriem at gmail.com
Mon Apr 21 22:12:41 EDT 2008


samslists at gmail.com wrote:
> Hi...
> 
> Here's a weird problem...I'm trying to escape a bunch of data to put
> into a database.

Is it possible to use the database API and prepared statements to avoid
having to go through this exercise?  Also, most database APIs work
natively in unicode, so creating your prepared statement and then
passing in each parameter as an argument saves a lot of hassle, since
the API's usually decode the unicode strings automatically.



More information about the Python-list mailing list