[Python-Dev] cpython: locals dictionary in PyRun_String

Nick Coghlan ncoghlan at gmail.com
Wed Jul 15 02:41:44 CEST 2015

On 15 July 2015 at 05:44, Matthew Keeter <matt.j.keeter at gmail.com> wrote:
> One more data point:
> On the Python side, exec has documentation
> (https://docs.python.org/3/library/functions.html#exec)
> that nicely reflects what’s going on in the frame code (where globals must
> be a dict but locals can be
> any mapping object).

I was about to post about that. exec used to also require that locals
be exactly a dictionary, so my suspicion is that we simply missed
updating the PyRun_SimpleString docs when the constraint was removed
from the underlying frame execution code.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-Dev mailing list