[New-bugs-announce] [issue44502] bla in cpython/Lib/test/test_sys_settrace.py

zcpara report at bugs.python.org
Thu Jun 24 05:40:58 EDT 2021


New submission from zcpara <zhangchaospecial at gmail.com>:

In cpython/Lib/test/test_sys_settrace.py, there is a function:
1 def no_pop_blocks():
2    y = 1
3    while not y:
4        bla
5    x = 1

what does bla mean? bla is not defined anywhere. But the function can pass the compilation. bla is treated as a global name in symtable during compilation. Why does python allow this statement (line 4)? Will line 4 be deleted in the future? Or be replaced with pass?

----------
components: Tests
messages: 396465
nosy: zhangchaospecial
priority: normal
severity: normal
status: open
title: bla in cpython/Lib/test/test_sys_settrace.py
versions: Python 3.11

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


More information about the New-bugs-announce mailing list