Guido van Rossum <gu...@python.org> added the comment:
Victor > the new globals has no "__builtins__" key. This change is backward > incompatible on purpose. If someone really wants to run a function in a > different builtins namespace, globals['__builtins__'] must be set explicitly. You say it's on purpose, what's the purpose? Aren't you worried this is going to break stuff? And why is this necessary given the LOAD_GLOBAL cache? Yury > this hypothetical LEN opcode would still have to check if "len" was shadowed > or not, and that's slower than the optimized LOAD_GLOBAL we have now. It could use the same check though? Just check the version tags. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42990> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com