Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78965

Re: Python and sqlite versions

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; ';-)': 0.03; 'tutorial': 0.03; 'output': 0.05; 'subject:Python': 0.06; 'steve': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'things,': 0.09; 'python': 0.11; 'windows': 0.15; '1:13': 0.16; 'from:addr:steve': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'record,': 0.16; 'sqlite': 0.16; 'subject:versions': 0.16; 'uses,': 0.16; 'version?': 0.16; 'wrote:': 0.18; 'library': 0.18; 'later': 0.20; 'import': 0.22; 'header:User-Agent:1': 0.23; "aren't": 0.24; 'fine': 0.24; 'versions': 0.24; 'looks': 0.24; "i've": 0.25; 'possibly': 0.26; 'post': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'installed': 0.27; "doesn't": 0.30; 'especially': 0.30; "i'm": 0.30; 'too.': 0.31; 'exceptions': 0.31; 'run': 0.32; 'running': 0.33; 'fri,': 0.33; 'display': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; '2.6': 0.36; 'library.': 0.36; 'next': 0.36; 'thanks': 0.36; "i'll": 0.36; 'possible': 0.36; 'should': 0.36; 'so,': 0.37; 'starting': 0.37; 'step': 0.37; 'thank': 0.38; 'depends': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'most': 0.60; "you're": 0.61; 'first': 0.61; 'back': 0.62; "you've": 0.63; 'different': 0.65; 'between': 0.67; 'off,': 0.84; 'received:2': 0.84; 'shape.': 0.84; 'ware': 0.91; 'differences': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Simmo <steve@bellissimmo.com>
Subject Re: Python and sqlite versions
Date Fri, 10 Oct 2014 20:18:07 +0100
References <m197l3$2r9$1@ger.gmane.org> <CAKJDb-P8LPvnX7YziANvmJ9g4sWV5Oh_mJ-N93LuEUZGcuG1MA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 2.122.189.77
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <CAKJDb-P8LPvnX7YziANvmJ9g4sWV5Oh_mJ-N93LuEUZGcuG1MA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14762.1412968707.18130.python-list@python.org> (permalink)
Lines 48
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1412968707 news.xs4all.nl 2940 [2001:888:2000:d::a6]:54592
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78965

Show key headers only | View raw


On 10/10/2014 20:02, Zachary Ware wrote:
> Hi Steve,
>
> On Fri, Oct 10, 2014 at 1:13 PM, Simmo <steve@bellissimmo.com> wrote:
>> First off, this is my first attempt to post via Thunderbird newsgroup, so
>> apologies (and please let me know) if it doesn't arrive in good shape.
>
> Looks fine to me :)
Thank you ;-)
>
>> I'm just starting to get to grips with using a database (sqlite) and I've
>> run into some confusion as to how Python 'ties in' to sqlite.
>
> How Python links with SQLite depends on several things, most
> importantly which platform you're on.
>
>> First step in the tutorial is to import sqlite3 and display sqlite3.version
>> and sqlite3.sqlite_version.  Output below...
>>
>>>>> sqlite3.version
>> '2.6.0'
>>>>> sqlite3.sqlite_version
>> '3.7.12'
>>
>> Next step is to run up sqlite.  Output below...
>>
>> SQLite version 3.8.6 2014-08-15 11:46:33
>> Enter ".help" for usage hints.
>>
>> So, I have a disparity between installed sqlite and the Python sqlite
>> library.  Do I need to find a 3.7.12 version of sqlite and , if so, where
>> might I find it or can I change the Python library for the later version?
>
> There aren't a huge number of differences between various versions of
> SQLite3 and fewer that you're likely to run into anyway, especially
> just starting out.  You should be fine just using what you've got,
> just keep the fact that you're running different versions in the back
> of your mind if you come across differences that don't make any sense.
>
> It may be possible to change the version that Python uses, but again
> it depends on your platform and possibly your version of Python
> (sqlite3.version has been the same from Python 2.6 to 3.5).
>
Thanks for this too.  I'll plough on and deal with exceptions as they 
come.  For the record, I'm on Windows 7

Steve

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python and sqlite versions Simmo <steve@bellissimmo.com> - 2014-10-10 20:18 +0100

csiph-web