best way to store dbm records?

Michael B. Allen mballen at
Sun Oct 8 11:18:55 CEST 2000

Fredrik Lundh wrote in message ...
>> Then, to get a record out I eval it like this:
>>  dbmrecord = eval(db[key])
>>  (a,v,d,x,o,r,f) = dbmrecord
>> Will this work reliably or is there a better way?
>as long as you stick to simple types, and trust whoever
>is putting data in the database...
>(if someone can mess with your database, that "eval" call
>can do things you didn't expect -- including erasing all your
>files, sending nasty mail, etc).

Oh, yeah. Duh.


More information about the Python-list mailing list