[New-bugs-announce] [issue30841] A shadowing variable naming emitted for Python-ast.c
Yuan Chao Chou
report at bugs.python.org
Mon Jul 3 15:21:00 EDT 2017
New submission from Yuan Chao Chou:
When Parser/asdl_c.py is composing the content of Python/Python-ast.c, it uses "value" to name the variables in inner blocks, which can shadow the variables named the same in outer blocks. It would be a good practice to avoid the shadowing naming to prevent the variables from being misused.
----------
components: Interpreter Core
messages: 297609
nosy: OswinC
priority: normal
severity: normal
status: open
title: A shadowing variable naming emitted for Python-ast.c
type: compile error
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30841>
_______________________________________
More information about the New-bugs-announce
mailing list