repr(string)

Fredrik Lundh fredrik at pythonware.com
Thu Jul 24 17:35:40 CEST 2008


David C. Ullrich skrev:

>> just keep in mind that using eval() on untrusted data isn't a very good 
>> idea.
> 
> Right. This data comes from me, gets put into a file and then
> read by me. Someone _could_ corrupt that file, but someone who
> could do that could more easily just throw the machine out
> the window...

and then your boss finds your program useful, and it's installed on a 
shared server, and then the guys at the office in Eggkleiva wants a 
copy, and then people start shipping save files via mail to keep things 
synchronized, and then someone sets up a web service... ;-)

</F>




More information about the Python-list mailing list