This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: "exec" BNF in simple statements
Type: Stage:
Components: Documentation Versions: Python 2.7, Python 2.6
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, georg.brandl, grubert
Priority: normal Keywords:

Created on 2013-11-17 13:35 by grubert, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg203146 - (view) Author: engelbert gruber (grubert) * Date: 2013-11-17 13:35
the doc says::

  exec_stmt ::= "exec" or_expr ["in" expression ["," expression]]

imho it should read ::

  exec_stmt ::= "exec" expression ["in" expression ["," expression]]
                | "exec(" expression [ ", expression" [ ", expression" ]] ")"
msg204303 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2013-11-25 07:46
That would be correct as a handwaving description, but it's wrong as a formal spec.  The "or_expr" already includes the possibility of a tuple; there is no "exec(" token etc.
History
Date User Action Args
2022-04-11 14:57:53adminsetgithub: 63830
2013-11-25 07:46:21georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg204303

resolution: works for me
2013-11-17 13:35:47grubertcreate