Re: 3.0 - bsddb removed

2009-03-22 Thread Albert Hopkins
On Sun, 2009-03-22 at 15:55 +, Sean wrote:
 Anyone got any thoughts about what to use as a replacement.  I need 
 something (like bsddb) which uses dictionary syntax to read and write an 
 underlying (fast!) btree or similar.
 
gdbm

--
http://mail.python.org/mailman/listinfo/python-list


Re: 3.0 - bsddb removed

2009-03-22 Thread Benjamin Peterson
Sean seandc at att.net writes:

 
 Anyone got any thoughts about what to use as a replacement.  I need 
 something (like bsddb) which uses dictionary syntax to read and write an 
 underlying (fast!) btree or similar.

pybsddb is just not included in the core. It's still distributed separately.
http://www.jcea.es/programacion/pybsddb.htm



--
http://mail.python.org/mailman/listinfo/python-list


Re: 3.0 - bsddb removed

2009-03-22 Thread Nick Craig-Wood
Sean sea...@att.net wrote:
  Anyone got any thoughts about what to use as a replacement.  I need 
  something (like bsddb) which uses dictionary syntax to read and write an 
  underlying (fast!) btree or similar.

sqlite.

bsddb gave me no end of trouble with threads, but sqlite worked
brilliantly.

You would need to make a dictionary interface to sqlite, eg

  http://code.activestate.com/recipes/576638/

Or do something a bit simpler yourself.

-- 
Nick Craig-Wood n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list


Re: 3.0 - bsddb removed

2009-03-22 Thread alex23
On Mar 23, 3:30 am, Nick Craig-Wood n...@craig-wood.com wrote:
 You would need to make a dictionary interface to sqlite, eg

  http://code.activestate.com/recipes/576638/

 Or do something a bit simpler yourself.

Another option is to use the 'shove' module: http://pypi.python.org/pypi/shove

Similar API to shelve, shove-able objects can be treated just like
dicts, and it supports sqlite as a backend amongst many many others.


--
http://mail.python.org/mailman/listinfo/python-list