21 lines
822 B
Plaintext
21 lines
822 B
Plaintext
From: jlee at fastech.com (Jaeho Lee)
|
|
Date: Mon, 12 Apr 1999 20:47:55 GMT
|
|
Subject: how to use exec
|
|
Message-ID: <7etm5o$bvm$1@nnrp1.dejanews.com>
|
|
X-UID: 569
|
|
|
|
Hi folks, I'm making test tools based on python. I want to test script
|
|
includes python script and test tools execute the command dynamically. "exec"
|
|
is good for this. But if exec runs assign statement, it stores the variable
|
|
in local area. I want to put the variable in global area. How can I do this?
|
|
I saw this in python pocket reference. exec codestring [in globaldict [,
|
|
localdict]] But this syntax does not work. Could somebody let me know how to
|
|
use exec?
|
|
|
|
-----------== Posted via Deja News, The Discussion Network ==----------
|
|
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
|
|
|
|
|
|
|
|
|