Terry J. Reedy added the comment: Calling locals() updates the dict, just as documented. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue7083> _______________________________________