[issue42693] "if 0:" lines are traced; they didn't use to be
Mark Shannon
report at bugs.python.org
Mon Dec 21 06:01:26 EST 2020
Mark Shannon <mark at hotpy.org> added the comment:
But why remove it? It is in the source code.
Do we want tracing and profiling to depend on what transformations the optimizer does or does not make?
What lines are to be traced here? What is the last line executed?
def no_code():
if 0:
some_code
Consider the code:
def one():
return 1
def two():
return one() + 1
def const_test():
if two() != 2:
lots_of_code_here
What lines should be traced here?
If the runtime does speculatively inlining, should it change what code is to be traced?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42693>
_______________________________________
More information about the Python-bugs-list
mailing list