JTrout opened this issue on Sep 11, 2010 · 7 posts
JTrout posted Sat, 11 September 2010 at 3:50 AM
Hi,
There is the script which a specific built-in function is overwritten in.
Then, after that script is executed, the script which a specific built-in function is used in doesn't work properly.
For example, "str" is overwritten as a variable in the "setLightStyle.py" of the Wacros.
Because of that, a str() function can't be used any more after that script practice.
There may be other similar script, too.
Is each script execution in the same process/name_space unless the Poser is finished?
What kind of coping (self-defense) is possible for the programmer to such a problem which occurs from other's scripts?
For example, as for "setLightStyle.py", it seems it can be avoided by putting the following statement on the start of my script.
del str
However, is this suitable?
Generally it is not only "str", and such an ad hoc code is unpleasant in the first place.
What is a suitable avoidance means?
Kind regards,
JTrout