Re: difference b/t dictionary{} and anydbm - they seem the same

2008-03-12 Thread castironpi
Are there any that aren't persistent?         SQLite -- when opening a memory database rather than giving it a physical file. {I'm a tad too busy to look up the format of the memory parameter, but it shouldn't be too difficult to find it} What? If I wanted to code string literals, I'd use

difference b/t dictionary{} and anydbm - they seem the same

2008-03-11 Thread davidj411
anydbm and dictionary{} seem like they both have a single key and key value. Can't you put more information into a DBM file or link tables? I just don't see the benefit except for the persistent storage. d= dbm.open('c:\\temp\\mydb.dat','n') It has the following interface (key and data are

Re: difference b/t dictionary{} and anydbm - they seem the same

2008-03-11 Thread Carsten Haese
On Tue, 2008-03-11 at 06:49 -0700, davidj411 wrote: anydbm and dictionary{} seem like they both have a single key and key value. Can't you put more information into a DBM file or link tables? I just don't see the benefit except for the persistent storage. Persistent storage /is/ the benefit.

Re: difference b/t dictionary{} and anydbm - they seem the same

2008-03-11 Thread Robert Bossy
davidj411 wrote: anydbm and dictionary{} seem like they both have a single key and key value. Can't you put more information into a DBM file or link tables? I just don't see the benefit except for the persistent storage. Except for the persistent storage, that insignificant feature... ;) Well

Re: difference b/t dictionary{} and anydbm - they seem the same

2008-03-11 Thread davidj411
Persistent storage /is/ the benefit. If you want to store relational data, you should use a relational database. Thanks, that makes sense. Are there any local relational databases available to python that don't require a server backend? -- http://mail.python.org/mailman/listinfo/python-list

Re: difference b/t dictionary{} and anydbm - they seem the same

2008-03-11 Thread Joe Riopel
On Tue, Mar 11, 2008 at 10:58 AM, davidj411 [EMAIL PROTECTED] wrote: Thanks, that makes sense. Are there any local relational databases available to python that don't require a server backend? sqlite http://www.sqlite.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: difference b/t dictionary{} and anydbm - they seem the same

2008-03-11 Thread castironpi
 Thanks, that makes sense. Are there any local relational databases  available to python that don't require a server backend? sqlite http://www.sqlite.org/ Are there any that aren't persistent? -- http://mail.python.org/mailman/listinfo/python-list