Mark Shannon <m...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue42693> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com