[Tutor] Handling MySQLdb exceptions

Paul Schewietzek tetsuo2k6 at web.de
Thu Dec 20 19:00:00 CET 2007


Kent Johnson schrieb:
> A more robust solution would be to read the file with the csv module and 
> use cursor.execute() with a proper parameter list. This lets the csv and 
> database modules correctly (un)escape the data values.
> 
> Kent
> 

WOW thanks! I never thought about that there might be a csv-module! I'm 
on my way exploring it ;)

-paul


More information about the Tutor mailing list