Author pablogsal
Recipients aldwinaldwin, lukasz.langa, miss-islington, ned.deily, nedbat, p-ganssle, pablogsal, serhiy.storchaka, terry.reedy, xtreak
Date 2019-07-05.22:02:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562364131.34.0.008167395926.issue37500@roundup.psfhosted.org>
In-reply-to
Content
> I see optimizing away 'if __debug__: ...' clauses, when __debug__ is False (and 0) as currently documented language behavior, not a 'deep implementation detail'.
https://docs.python.org/3/reference/simple_stmts.html#the-assert-statement

I don't think you can conclude that is documented with this argument. What's documented is what happens with the assert statement, not with arbitrary dead code. The link between the two is at least an interpretation, not an explicitly documented think.
History
Date User Action Args
2019-07-05 22:02:11pablogsalsetrecipients: + pablogsal, terry.reedy, nedbat, ned.deily, lukasz.langa, serhiy.storchaka, p-ganssle, miss-islington, xtreak, aldwinaldwin
2019-07-05 22:02:11pablogsalsetmessageid: <1562364131.34.0.008167395926.issue37500@roundup.psfhosted.org>
2019-07-05 22:02:11pablogsallinkissue37500 messages
2019-07-05 22:02:11pablogsalcreate