__builtins__.exec with custom dicts seems outdated
Dec. 15, 2022
3:56 a.m.
Hi, I think I found an outdated sentence in the docs and since 'I'm short in time' and the docs says to mail bugs to this mailing list in that case..... https://docs.python.org/3.12/library/functions.html#exec says:
[..] If only globals is provided, it must be a dictionary (and not a subclass of dictionary), which will be used for both the global and the local variables.[..]
but it -- at least seems -- to work fine with a custom dict and if I understand https://github.com/python/cpython/issues/58593 correctly this was changed in Python Version 3.3.
769
Age (days ago)
769
Last active (days ago)
0 comments
1 participants
participants (1)
-
jeff