On 2007-12-27, SMALLp <[EMAIL PROTECTED]> wrote: > connectionString = {"host":"localhost", "user":"root", > "passwd":"pofuck", "db":"fileshare"} > dataTable = "files" > conn = mysql.connect(host=connectionString["host"], > user=connectionString["user"], passwd=connectionString["passwd"], > db=connectionString["db"])
Just to let you know, that last line can be rewritten as: conn = mysql.connect(**connectionString) Ian -- http://mail.python.org/mailman/listinfo/python-list