Reid> How can I have a database connection depending on different DBI Reid> 2.0 module dynamically? You mean like this: try: import MySQLdb DB = "MySQL" ... except ImportError: import psycopg DB = "PostgreSQL" ... ? Skip