Re: how can I use pysqlite with python2.5 in windows?
张沈鹏 <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
Christian Boos wrote: > 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 > > > _______________________________________________ > pysqlite mailing list > pysqlite-IAPFreCvJWPBWskQ1e/[email protected] > http://lists.initd.org/mailman/listinfo/pysqlite > > Thanks