[Python-Dev] Okay to document the "exec tuple" form of the exec statement in Python 2.7?

Mark Dickinson dickinsm at gmail.com
Mon Nov 5 14:09:55 CET 2012


On Mon, Nov 5, 2012 at 12:22 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> If you can find an existing test for it, then definitely (although the
> fact it didn't previously work on Jython suggests there may not be
> one).

I don't see any *direct* tests for this feature, though there are a
couple of tests that just happen to use that form of 'exec'
(test_pkg.py, test_module.py, test_pep263,py).

> If there's no test, then I'd still be in favour of making it official
> both by testing *and* documenting it, for the forward compatibility
> benefits you mention on the tracker.

Sounds good to me. I'll add a note to the issue about tests.

Mark


More information about the Python-Dev mailing list