Wojciech Muła 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"

that kind of coding is punishable by law in some jurisdictions.

</F>

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

Reply via email to