From: Ian B. <ia...@co...> - 2003-07-17 18:04:19
|
On Thu, 2003-07-17 at 05:37, Matt Goodall wrote: > Hi, > > Is there a good reason why DBConnection.py tries to load all supported > modules at the top of the module rather than where they are actually > required? i.e. why is psycopg imported for the whole module rather than > just for PostgresConnection? It should be relatively easy to refactor > the code so that the individual Connection classes load the DB-API > module as needed. > > A change like this would certainly improve load time for the module (not > really all that important) but I think it will also make it easier for > the Connection classes to support multiple dbapi DB-API drivers, i.e. > psycopg, pyPgSQL etc. > > Would you accept a patch for this? Yes, that would be fine. Ian |