Description of error messages
Chris Gonnerman
chris.gonnerman at newcenturycomputers.net
Tue Oct 29 07:22:05 EST 2002
More information about the Python-list mailing list
Tue Oct 29 07:22:05 EST 2002
- Previous message (by thread): Sybase module 0.35pre3 released
- Next message (by thread): Description of error messages
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
----- Original Message ----- From: "David LeBlanc" <whisper at oz.net> > Where do I find information on the errors that Python displays? > The particular one of the moment is "TypeError: format requires > a mapping" Let me guess... MySQLdb, right? Whatever you use as the argument to: cursor.execute("select * from mytable where id = %(id)s", arg) (for example) must follow the dictionary protocol. If you said: cursor.execute("select * from mytable where id = %s", arg) it could be a "straight" argument; or a tuple if there are more than one "%s" in the query string. Hope this helps. Chris Gonnerman -- chris.gonnerman at newcenturycomputers.net http://newcenturycomputers.net
- Previous message (by thread): Sybase module 0.35pre3 released
- Next message (by thread): Description of error messages
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list