On Sun, 12 Jun 2005 16:49:57 -0500, Skip Montanaro <[EMAIL PROTECTED]> wrote:
>
>Neville> # I was expecting a slice of an index file to yield a
>Neville> # generator so not all the records need to be read from disk
>
>Slicing is a feature of sequence types, not mapping types.
>
>>>
Neville> # I was expecting a slice of an index file to yield a
Neville> # generator so not all the records need to be read from disk
Slicing is a feature of sequence types, not mapping types.
>>> import string
>>> d = dict(zip(string.lowercase, string.uppercase))
>>> d
#!/bin/env python
import bsddb
test=bsddb.btopen("test.tbl")
for m in "JFMATQPHSOND":
test[m]="Profit for month "+m+" $1B"
def subyear_report(record_selection):
for data in record_selection.iteritems(): print data
# I was expecting a slice of an index file to yield a
# generator so not all