hi,
I'm not sure how I can use exec within a function correctly
here is the code i'm using:

def a():
    exec('b=1')
    print(b)

a()

this will raise an error, but I would like to see it outputting 1

thanks
smk
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to