Terry J. Reedy <tjre...@udel.edu> added the comment:
Victor, Pablo, I added you two since you commented on the duplicate. I believe this should be closed as 'not a bug'. The doc for globals() says is returns a 'dictionary', meaning an instance of dict. The doc for exec says globals "must be a dictionary (and not a subclass of dictionary)". (This is mere implied when locals is also given, but it *is* implied.). The behavior when globals is otherwise is undefined. ---------- nosy: +pablogsal, vstinner versions: +Python 3.9 -Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32615> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com