Skip to content

Conversation

@markshannon
Copy link
Member

Avoids having to recompute the offset all the time when tracing.

@markshannon
Copy link
Member Author

Blocked by #93771

@gvanrossum
Copy link
Member

As an experiment, can you remove the "import opcode" from deepfreeze.py and hardcode the RESUME opcode? We can debate whether that's the right fix, but so far the deepfreeze.py script has been carefully designed not to depend on the details of the target version.

@gvanrossum
Copy link
Member

Did you consider putting the new field in the marshaled code object? Then deepfreeze.py wouldn't have to import opcode.

@markshannon
Copy link
Member Author

Did you consider putting the new field in the marshaled code object?

Yes, but I decided against it.
This PR needs backporting to 3.11, so I want to keep it as small as possible, and it is already quite large.