How to use the exec statement
JB
jb at yahoo.de
Sun Oct 6 15:58:19 EDT 2002
Alex Martelli wrote:
> Well, if your +specs+ include using exec, then there's
> little you can do to *avoid* exec.
I have no /specs/ but if I did not use exec, I should have
to write a parser.
> However, fortunately, no part of the spec states that the
> exec MUST be in an existing namespace. Therefore, you
> can avoid the worst problems: build an artificial
> namespace (i.e., a suitably prepared dictionary) in which
> these statements are to execute -- populate it with
> whatever set of names you think the user will need (module
> r_exec is also a possibility).
How can I do this?
--
Janos Blazi
-----------== 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