[New-bugs-announce] [issue22008] Symtable's syntax warning should contain the word "because"

A Kaptur report at bugs.python.org
Sat Jul 19 00:45:49 CEST 2014

New submission from A Kaptur:

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

assignee: docs at python
components: Documentation
files: issue.patch
keywords: patch
messages: 223447
nosy: akaptur, docs at python
priority: normal
severity: normal
stage: needs patch
status: open
title: Symtable's syntax warning should contain the word "because"
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35992/issue.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list