Alex Gaynor added the comment: Using locals() in this fashion is a serious anti-pattern, I'm -∞ on the docs suggesting it. ---------- nosy: +alex _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19824> _______________________________________