Timo wrote:
<snip>
# Results file
import shelve
def read_result(person):
results = []
s = shelve.open(RESULTFILE)
try:
results = s[person]
Maybe passing this out prevents s from being garbage collected?
Emile
except KeyError:
# print "No results for this person"
pass
finally:
s.close()
return results
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor