Hi all,

I'm doing a function which needs return an arrary -- or more specially a 
dictionary data type.
I have a sample like this

def AFC():
  v["a"] = 1
  return v

v = AFC()
print v["a"]

with error
NameError: global name 'v' is not defined

how do I go about it?

Thanks in advance.
Boris Mok
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to