[issue39818] Declaring local variable invalidates access to a global variable

Grzegorz Krasoń report at bugs.python.org
Sun Mar 1 17:11:43 EST 2020


New submission from Grzegorz Krasoń <grzegorz.krason at gmail.com>:

I'm not certain if this is intended behavior, but I would like to make sure. Please resolve with the lowest priority.

It seems tricky that line #6 can influence instruction that chronologically appears earlier. Especially taking into account that line #6 is never executed.

----------
components: Interpreter Core
files: demo.py
messages: 363099
nosy: Grzegorz Krasoń
priority: normal
severity: normal
status: open
title: Declaring local variable invalidates access to a global variable
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file48941/demo.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39818>
_______________________________________


More information about the Python-bugs-list mailing list