[Tutor] python's database

Alan Gauld alan.gauld at btinternet.com
Sat Aug 15 14:40:06 CEST 2009


<davidwilson at Safe-mail.net> wrote

> I seem to remember that python had a native database, 
> can someone remind me which this was.

Python doesn't have a native database per se but it supports 
access to many third party databases via its DBAPI. It also 
supports the dbm file format which is the underlying structure 
of many more complex databases. The shelve module can 
be used as a very primitive dictionary like database if you 
only need to persist objects

However, the standard library includes sqlite which is a basic SQL 
database which can be based on a single file or held in memory.
That may be what you were thinking of?

HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list