Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"exec" BNF in simple statements #63830

Closed
grubert mannequin opened this issue Nov 17, 2013 · 2 comments
Closed

"exec" BNF in simple statements #63830

grubert mannequin opened this issue Nov 17, 2013 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@grubert
Copy link
Mannequin

grubert mannequin commented Nov 17, 2013

BPO 19631
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2013-11-25.07:46:21.773>
created_at = <Date 2013-11-17.13:35:47.294>
labels = ['docs']
title = '"exec" BNF in simple statements'
updated_at = <Date 2013-11-25.07:46:21.771>
user = 'https://bugs.python.org/grubert'

bugs.python.org fields:

activity = <Date 2013-11-25.07:46:21.771>
actor = 'georg.brandl'
assignee = 'docs@python'
closed = True
closed_date = <Date 2013-11-25.07:46:21.773>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2013-11-17.13:35:47.294>
creator = 'grubert'
dependencies = []
files = []
hgrepos = []
issue_num = 19631
keywords = []
message_count = 2.0
messages = ['203146', '204303']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'grubert', 'docs@python']
pr_nums = []
priority = 'normal'
resolution = 'works for me'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue19631'
versions = ['Python 2.6', 'Python 2.7']

@grubert
Copy link
Mannequin Author

grubert mannequin commented Nov 17, 2013

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" ]] ")"

@grubert grubert mannequin assigned docspython Nov 17, 2013
@grubert grubert mannequin added the docs Documentation in the Doc dir label Nov 17, 2013
@birkenfeld
Copy link
Member

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant