Re: error on importing variable value

2007-12-30 Thread int32bit
On Dec 29, 6:05 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Sat, 29 Dec 2007 15:31:30 -0800 (PST), [EMAIL PROTECTED] declaimed > the following in comp.lang.python: > > > > > I can't figure out why this doesn't work. Any ideas appreciated. > > > conn = MySQLdb.connect (db = "vocab") > >

error on importing variable value

2007-12-29 Thread int32bit
I can't figure out why this doesn't work. Any ideas appreciated. conn = MySQLdb.connect (db = "vocab") cursor = conn.cursor () cursor.execute ("SELECT VERSION()") row = cursor.fetchone () print "server version:", row[0] cursor.close () conn.close () gives: server version: 5.0.44-log but impor