Georg Brandl <[EMAIL PROTECTED]> added the comment: It is "valid" Python 3 and the lack of an effect on the local is correct.
>From Python 3 on, "exec" is a function and therefore lacks the special magic properties it had in Python 2 that made it possible execute the code "as if it just was written there". In effect, what exec() modifies here is similar to what locals() returns: a mere copy of the local namespace. ---------- nosy: +georg.brandl resolution: -> wont fix status: open -> closed _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4447> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com