How to use the exec statement

JB jb at yahoo.de
Sun Oct 6 16:33:27 EDT 2002


Alex Martelli wrote:

Thx.
There is one thing I do nt understand, though. (It is late 
and I am tried. I may understand it tomorrow.)

In thet new namespace there will be a function f. The user 
must be able to call f via exec.
But f needs a global variable, otherwise it cannot 
communicate with the rest of my program. If the user can 
access this variable and overwrites it...
How to solve this?

-- 
J.... B....


-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----



More information about the Python-list mailing list