Skip to content

Give _PyInstructionSequence a python interface and use it in compiler tests #117680

Closed

Description

@iritkatriel

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 re-uses the implementation of the instruction sequence data structure.

Linked PRs

Activity

  1. self-assigned this
    on Apr 9, 2024
  2. terryjreedy commented on Apr 10, 2024

    @terryjreedy
    Member

    /refuses/re uses/? (last line)

  3. added a commit that references this issue on Apr 17, 2024
  4. added a commit that references this issue on Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions