New GitHub issue #117680 from iritkatriel:<br>
<hr>
<pre>
Expose ``_PyInstructionSequence`` as a PyObject, and then the compiler tests would be able to work with it directly.
By giving this object functions to add a label/instruction, the logic of translating a convenient python representation to a C sequence does not need to be duplicated in the test harness, the process of constructing an instruction sequence from tests becomes the same as the one used in codegen, and refuses the implementation of the instruction sequence data structure.
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/117680">View on GitHub</a>
<p>Labels: interpreter-core</p>
<p>Assignee: iritkatriel</p>