repr(string)

David C. Ullrich dullrich at sprynet.com
Thu Jul 24 12:21:58 EDT 2008


In article <mailman.602.1216913758.922.python-list at python.org>,
 Fredrik Lundh <fredrik at pythonware.com> wrote:

> 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... ;-)

Heh-heh. Good point, except that the idea that someone's going to
find it useful is utterly implausible. Nobody but me has ever found
a program I wrote useful. People think it's funny that I write little
Python programs to do things I could just do in Excel or Open
Office. (When I have some accounting/secretarial sort of thing
to do doing it by hand in Python is one way to make it tolerably
interesting. Easier to add new features - instead of trying to find
an Excel way to do something like delete the smallest _two_
items in a list I just do it.)

> </F>

-- 
David C. Ullrich



More information about the Python-list mailing list