On 20-Jun-07, at 10:51 AM, Jean-Paul Calderone wrote:

> On Wed, 20 Jun 2007 10:24:55 -0700, Guido van Rossum  
> <[EMAIL PROTECTED]> wrote:
>
> > OTOH, pragmatically, people will generally use text strings for  
> db keys.
>>
>> I'm not sure how to decide this; perhaps we need to take it public.
>
> If it helps, after having used bsddb for a couple years and  
> developed a
> non-trivial library on top of it, what Martin said seems most  
> sensible to
> me.

As an extremely heavy user of bsddb, +1.

Berkeley db is rather sensitive on how things are serialized (for  
instance, big-endian is much better for ints, performance-wise), so  
it is necessary to let the developer control this on a bytestring  
level.  It is easy to write a wrapper on top of this to do the  
serialization automatically.

-Mike



_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to