trouble testing for existance of variable
scott2237 at yahoo.com
Tue Mar 12 22:52:01 CET 2002
if I want to know if a variable exists before
testing it, what do I do?
I have tried
curr_color = "none"
curr_color = vim.eval("colors_name")
curr_color = os.getenv("colors_name", "none")
and I just can't seem to get there from here
I am using python as my gvim scripting language here,
python v2.2, both on NT 4.0 and win98se
gvim is version 6.0
I want to do things based on the existance of colors_name,
but if it's undefined I can't test it
More information about the Python-list