Hi Gabriele, In addition to what Guido and Brandt have already said, I can help to you adapting Austin to 3.11 as I reviewed or authored some of these changes and I have already been helping some projects do the relevant changes as well as in my own tools.
What you want to do si the following for unwinding: * Go from _PyRuntime -> PyThreadState -> CFrame -> current_frame This will lead you to s PyInterpreterFrame that you should use for unwinding the entire thread stack. The difference is that cframe->previous will skip you several frames as it points to the previous CFrame, but there are a one to many relationships between CFrame and interpreter frames because several python functions can now reuse the same evaluation loop. Also, I would recommend waiting until beta freeze to start adapting anything as things can still massively change until then for 3.11. If you have any questions or you need help, feel free to ping me in GitHub if you want. Regards from rainy London, Pablo Galindo Salgado On Mon, 20 Dec 2021, 18:27 Gabriele, <phoenix1...@gmail.com> wrote: > Hi there > > I hope you would indulge me in asking for some details about the new > CFrame structure, even in the form of existing literature (e.g. PEP) > where the idea behind it is explained. > > Also, I'd like to a quick question, if I may. There now appear to be > two ways of unwinding the frame stack: either iterate over > CFrame.previous, or the more traditional PyFrameObject.f_back. I > suspect there are reasons why these are perhaps not actually > equivalent, and indeed this is mainly what I'd like to read in the > literature I've requested above. > > Cheers, > Gabriele > > -- > "Egli è scritto in lingua matematica, e i caratteri son triangoli, > cerchi, ed altre figure > geometriche, senza i quali mezzi è impossibile a intenderne umanamente > parola; > senza questi è un aggirarsi vanamente per un oscuro laberinto." > > -- G. Galilei, Il saggiatore. > _______________________________________________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/KQOQTLR5IXMJXYZGPDHWR32I2Z53UVBL/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/F4QZ3UXCW3ZLTUUKD3L4XFHHDWPZGJV4/ Code of Conduct: http://python.org/psf/codeofconduct/