[docs] [issue8824] Improve documentation of exec

Jordan Stadler report at bugs.python.org
Thu May 12 18:04:31 CEST 2011

Jordan Stadler <jordan.stadler at gmail.com> added the comment:

I've updated the 3.x patch, should be correct now.

I also updated the 2.x patch to use ``in``. :keyword:`in` was used in an earlier part of the paragraph I modified, so I have changed both for consistency.

This is the paragraph before modification:
  In all cases, if the optional parts are omitted, the code is executed in the
  current scope.  If only the first expression after :keyword:`in` is specified,
  it should be a dictionary, which will be used for both the global and the local
  variables.  If two expressions are given, they are used for the global and local
  variables, respectively. If provided, *locals* can be any mapping object.


Python tracker <report at bugs.python.org>

More information about the docs mailing list