[issue7286] odd exec() behavior or documentation

Georg Brandl report at bugs.python.org
Mon Nov 16 18:19:38 CET 2009


Georg Brandl <georg at python.org> added the comment:

The docs already contain the following note:

   .. note::

      The default *locals* act as described for function :func:`locals`
below:
      modifications to the default *locals* dictionary should not be
attempted.
      Pass an explicit *locals* dictionary if you need to see effects of the
      code on *locals* after function :func:`exec` returns.

----------
resolution:  -> works for me
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7286>
_______________________________________


More information about the Python-bugs-list mailing list