Message383509
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? |
|
Date |
User |
Action |
Args |
2020-12-21 11:01:26 | Mark.Shannon | set | recipients:
+ Mark.Shannon, rhettinger, nedbat, serhiy.storchaka |
2020-12-21 11:01:26 | Mark.Shannon | set | messageid: <1608548486.12.0.495004807609.issue42693@roundup.psfhosted.org> |
2020-12-21 11:01:26 | Mark.Shannon | link | issue42693 messages |
2020-12-21 11:01:26 | Mark.Shannon | create | |
|