[issue34888] Python3.8 optimizes away a "while" line

Yury Selivanov report at bugs.python.org
Wed Oct 3 21:43:11 EDT 2018


Yury Selivanov <yselivanov at gmail.com> added the comment:

> I assume there is some place that notices that the while condition is a constant, and therefore doesn't need to be explicitly evaluated?

To answer your question: yes, and it's unrelated to both peephole optimizer and to the above mentioned grand refactoring of the ceval loop :)  But if we add "-X noopt" (or equivalent) we can disable those micro-optimizations too.

Let's track this in https://github.com/python/cpython/pull/9693

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34888>
_______________________________________


More information about the Python-bugs-list mailing list