deshaw / pyflyby

A set of productivity tools for Python
https://deshaw.github.io/pyflyby/
Other
347 stars 52 forks source link

Compatibility with Python 312. #314

Closed Carreau closed 3 months ago

Carreau commented 6 months ago

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.