This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alsadi
Recipients alsadi, pitrou
Date 2009-01-19.23:22:45
SpamBayes Score 0.00044365978
Marked as misclassified No
Message-id <1232407366.41.0.110549164296.issue4995@psf.upfronthosting.co.za>
In-reply-to
Content
can you please tell me how to detect the version so that my application
will not crash on Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38) 

which of these values should I use
    apilevel = '2.0'
    sqlite_version = '3.5.9'
    sqlite_version_info = (3, 5, 9)
    version = '2.3.2'
    version_info = (2, 3, 2)
    x = '9'

that are different in your python 2.6
for example
import sqlite3
if sqlite3.version_info<(3,0,0): c.execute('BEGIN TRANSACTION')
History
Date User Action Args
2009-01-19 23:22:46alsadisetrecipients: + alsadi, pitrou
2009-01-19 23:22:46alsadisetmessageid: <1232407366.41.0.110549164296.issue4995@psf.upfronthosting.co.za>
2009-01-19 23:22:45alsadilinkissue4995 messages
2009-01-19 23:22:45alsadicreate