Is CONTINUE_LOOP still a thing?

Terry Reedy tjreedy at udel.edu
Tue Jun 9 10:10:58 EDT 2020


On 6/9/2020 3:26 AM, Adam Preble wrote:

> Well, I found CONTINUE_LOOP

In opcode.py for 3.6.8 with value 119, annotated as an absolute jump.

Everything in this file is use-at-your-own-risk internal cpython detail, 
subject to change with any release.

> 3.6.8 sure doesn't emit it for pretty basic stuff:

It is gone in 3.8.3, along with others.  I believe a core developer who 
added new opcodes removed unused opcodes after counting emissions of 
opcodes in compiler code.  As with Python, deletion of unused items is 
not guaranteed to be immediate.

SETUP_LOOP, which was used in 3.6, is gone also.

-- 
Terry Jan Reedy



More information about the Python-list mailing list