Hirokazu Yamamoto added the comment:
According to http://docs.python.org/library/functions.html#vars
>The returned dictionary should not be modified: the effects on the
>corresponding symbol table are undefined.
Same can be said for locals() as well.
--
nosy: +ocean-city
resolution:
New submission from pest :
Assignments to vars() behave incorrectly if those variables are use
later on in a function.
For example, try this:
==
#!/usr/bin/python
def zz():
for i in [1,2,3]:
for j in [4,5,6]:
vars()['fw_%s_%s' % (j,i)] = 'tes