Re: how can I use pysqlite with python2.5 in windows?
Christian Boos <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Pysqlite is part of the standard library, starting with Python 2.5.
So you can do something like:
try:
import pysqlite2.dbapi2 as sqlite
except ImportError:
import sqlite3 as sqlite
to first try to import any manually installed pysqlite package (maybe
because you compiled it yourself or because it is more recent than the
one coming with the distribution), then if that fails, revert to the
"standard" one (named sqlite3).
As of today, the version coming with Python 2.5 is still the most
recently released one (2.3.2).
-- Christian