[pybsddb] Secondary Indices with bsddb3

Jesus Cea jcea at argo.es
Tue Nov 18 20:27:50 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

denis.papathanasiou at gmail.com wrote:
>> define getname as only taking the primary key and data, and return a
>> single argument which is the string to use as the secondary key (you
>> don't need to define the length separately since strings in python have
>> a length):
>>
>> def getname(primarykey, primarydata):
>> return primarydata.split(',')[0]
> 
> Thank you for clarifying that.

Was that answer sent to you privately?. I can't see it in the mailing
list :-?

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSSMXMplgi5GaxT1NAQIUswP+O/AxSw99GOQXrx/FvCJ4BowEu6kA/tTC
0YNtRIn3BA6d4DKm2lFudFLFAoGIix7O0p9P0Fr6gvg3Iy1riLGw7/Ny+dBazRa1
ynXeLzfDVQTate6a+bLyUucGDp/s8J8AZZE9pHzZMB9xDt6kV4tThsbTy+kL1KLU
2z5WL4i+hQQ=
=3qLD
-----END PGP SIGNATURE-----



More information about the pybsddb mailing list