Steve Stagg <stest...@gmail.com> added the comment:

Oops, sorry, didn't realise there were such rules.  

The reasoning for me making the change to the title is that that the original 
PR didn't mention skipping actual condition logic, but does mention skipping 
unreachable blocks, with the examples provided (either by accident or intent) 
showing cases where the condition was still included.

I thus assumed the change that has been implemented had bad unintended 
side-effects (a bug), so wanted to capture that and, if any consensus on 
allowing the optimizer to skip bool() calls is ever reached on the mailing 
list, an explicit issue would be raised to cover that change.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42899>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to