[Python-Dev] Re: CACHE opcode in Python 3.11 bytecode

2022-07-25 Thread Jeremiah Gabriel Pascual
The CACHE opcode is a new 3.11+ opcode which is kind of a NOP but is used by some other opcodes to store cache information for specialization. A map of -> is in `dis._inline_cache_entries` if that helps with this. ___ Python-Dev mailing list --

[Python-Dev] CACHE opcode in Python 3.11 bytecode

2022-07-25 Thread Matthieu Dartiailh
Hi all, I am in the slow process of adding support for Python 3.11 in the bytecode project (https://github.com/MatthieuDartiailh/bytecode). While attempting to update some tests I stumbled upon the need to include CACHE opcode to get things to work. For example, one can use bytecode to