Oleksandr Suvorov <susl...@gmail.com> added the comment:
But then why I still can access this variable? Shouldn't it then be resulting in NameError as it's undefined variable at this point of time? I think UnboundError creates more confusing here, as it's either the variable should exist and have a value or it should be unknown and result in NameError at this point. On Fri, May 22, 2020 at 1:08 PM Pablo Galindo Salgado < rep...@bugs.python.org> wrote: > > Change by Pablo Galindo Salgado <pablog...@gmail.com>: > > > ---------- > nosy: +Mark.Shannon > resolution: -> not a bug > stage: -> resolved > status: open -> closed > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <https://bugs.python.org/issue40728> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40728> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com