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: Symtable's syntax warning should contain the word "because"
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: akaptur, python-dev
Priority: normal Keywords: patch

Created on 2014-07-18 22:45 by akaptur, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue.patch akaptur, 2014-07-18 22:45 review
Messages (2)
msg223447 - (view) Author: A Kaptur (akaptur) * (Python triager) Date: 2014-07-18 22:45
The symbol table's syntax error about unqualified exec is missing the word "because".

>>> def foo():
...     exec "a = 1"
...     def bar():
...         print a
... 
  File "<stdin>", line 2
SyntaxError: unqualified exec is not allowed in function 'foo' it contains a nested function with free variables
msg223451 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-07-18 23:26
New changeset ef009b76bca3 by Benjamin Peterson in branch '2.7':
add missing 'because' (closes #22008)
http://hg.python.org/cpython/rev/ef009b76bca3
History
Date User Action Args
2022-04-11 14:58:06adminsetgithub: 66207
2014-07-18 23:26:21python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg223451

resolution: fixed
stage: patch review -> resolved
2014-07-18 23:26:07benjamin.petersonsetversions: - Python 3.4, Python 3.5
2014-07-18 23:02:40berker.peksagsetnosy: - docs@python
versions: - Python 3.1, Python 3.2, Python 3.3
assignee: docs@python ->
components: + Library (Lib), - Documentation
type: enhancement -> behavior
stage: needs patch -> patch review
2014-07-18 22:45:49akapturcreate