Yury Selivanov <yseliva...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34888>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to