best way to store dbm records?
Michael B. Allen
mballen at NOSPAM_erols.com
Sun Oct 8 05:18:55 EDT 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.
Mike
More information about the Python-list
mailing list