Content-Length: 273225 | pFad | https://github.com/python/cpython/issues/117680

ad Give _PyInstructionSequence a python interface and use it in compiler tests · Issue #117680 · python/cpython · GitHub
Skip to content

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

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

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









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/issues/117680

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy