[Tutor] Which should it be, lists, tuples, dictionary or files? [SOLVED]

Ken G. beachkidken at gmail.com
Tue Jan 3 13:19:05 CET 2012


On 01/03/2012 06:28 AM, Alan Gauld wrote:
> On 03/01/12 07:31, Devin Jeanpierre wrote:
>
>> It's probably worth mentioning that shelve is not secure; loading a
>> saved shelf can involve executing arbitrary python code embedded
>> inside it. This probably isn't important for this particular project,
>> but maybe in the future, if you consider using shelf for something
>> more security-conscious...
>
> A good point, shelve should be treated more like an internal 
> persistence tool than a general purpose database. It's
> fine if you know what you are storing but if random data
> is being put into it there could be problems.
>
My thanks to all of those who replied and offered suggestions.  I will 
be looking into every one of those suggestions.  Again, my thanks.  This 
is truly a great Python group.

Ken, Louisville, KY, USA


More information about the Tutor mailing list