Author Mark.Shannon
Recipients Mark.Shannon, nedbat, rhettinger, serhiy.storchaka
Date 2020-12-21.11:01:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608548486.12.0.495004807609.issue42693@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2020-12-21 11:01:26Mark.Shannonsetrecipients: + Mark.Shannon, rhettinger, nedbat, serhiy.storchaka
2020-12-21 11:01:26Mark.Shannonsetmessageid: <1608548486.12.0.495004807609.issue42693@roundup.psfhosted.org>
2020-12-21 11:01:26Mark.Shannonlinkissue42693 messages
2020-12-21 11:01:26Mark.Shannoncreate