This starts looking into compatibiliy with Python 3.12.
There seem to have been a number of changes to the bytecode in 3.12, following a number of changes in 3.11 as well, and 3.13 also adds a bunch.
It seem though that the dis module has gained a number of convenience classes and methods, in particular dis.Bytecode. I think in a couple of places it might be worth looking into using that instead of parsing the bytecode ourselves.
This starts looking into compatibiliy with Python 3.12.
There seem to have been a number of changes to the bytecode in 3.12, following a number of changes in 3.11 as well, and 3.13 also adds a bunch.
It seem though that the
dis
module has gained a number of convenience classes and methods, in particulardis.Bytecode
. I think in a couple of places it might be worth looking into using that instead of parsing the bytecode ourselves.