[pybsddb] Secondary Indices with bsddb3

denis.papathanasiou at gmail.com denis.papathanasiou at gmail.com
Tue Nov 18 16:49:16 CET 2008


> 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.



More information about the pybsddb mailing list