Alistair King wrote: > is there a simple way of creating global variables within a function?
def foo(name): globals()[name] = "xxx" globals()[name + 'aa'] = "yyy" globals()[name + 'ab'] = "zzz" -- http://mail.python.org/mailman/listinfo/python-list
Alistair King wrote: > is there a simple way of creating global variables within a function?
def foo(name): globals()[name] = "xxx" globals()[name + 'aa'] = "yyy" globals()[name + 'ab'] = "zzz" -- http://mail.python.org/mailman/listinfo/python-list