Re: [Tutor] eval and exec

2004-12-06 Thread Alan Gauld
- MS allows Outlook to run scripts when mail is open, if those scripts are harmful we have a virus! That is (was, they've improved it a lot) the number one cause of script kiddie virii. Simply viewing a mail message in the preview pane was enough to trigger a script. They have improved

Re: [Tutor] eval and exec

2004-12-04 Thread Alan Gauld
I'm having trouble understanding the difference between eval and exec. eval evaluates an *expression* - that is something that returns a value. exec executes a piece of code, it need not return a value. eval is slightly safer than exec (but not much). Some examples: print 'hello' # use

Re: [Tutor] eval and exec

2004-12-04 Thread Brian van den Broek
Brian van den Broek said unto the world upon 2004-12-04 04:28: Marilyn Davis said unto the world upon 2004-12-04 01:37: Hello Tutors, I'm having trouble understanding the difference between eval and exec. Can anyone explain it to me please? Marilyn Davis Hi Marilyn, does this help? SNIP Darn. I

Re: [Tutor] eval and exec

2004-12-04 Thread Bill Campbell
On Sat, Dec 04, 2004, Alan Gauld wrote: I'm having trouble understanding the difference between eval and exec. eval evaluates an *expression* - that is something that returns a value. ... Both are extremely dangerous functions from a security and maintenance/reliability pouint of view and