Author Mark.Shannon
Recipients Mark.Shannon, pablogsal
Date 2020-11-03.10:42:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604400179.28.0.816626213543.issue42246@roundup.psfhosted.org>
In-reply-to
Content
The following code is completely eliminated by the macros.

1. if 0:
2.     secret_debugging_code()

PEP 626 says that all executed lines of code must generate trace events,
so we need to emit an instruction for line 1.

Dead code elimination will remove the `secret_debugging_code()`, but leave the test. The peephole optimiser can then reduce it to a NOP, but won't eliminate it as it is the only instruction for line 1.
History
Date User Action Args
2020-11-03 10:42:59Mark.Shannonsetrecipients: + Mark.Shannon, pablogsal
2020-11-03 10:42:59Mark.Shannonsetmessageid: <1604400179.28.0.816626213543.issue42246@roundup.psfhosted.org>
2020-11-03 10:42:59Mark.Shannonlinkissue42246 messages
2020-11-03 10:42:59Mark.Shannoncreate