laike9m / Cyberbrain

Python debugging, redefined.
http://bit.ly/cyberbrain-features
MIT License
2.51k stars 159 forks source link

Support Python 3.10 #126

Open laike9m opened 3 years ago

laike9m commented 3 years ago

Python 3.10 changelog

Bytecode changes can be found by viewing magic number change history image

Other bytecode related changes:

victorjzsun commented 3 years ago

Note: Python3.10 uses co_lines instead of co_lnotab for source code line numbers There might be changes to source code linenos for events

laike9m commented 3 years ago

Currently the code does not use co_lnotab directly.

laike9m commented 2 years ago

I tried running the test suite under Python 3.10 rc2. Many tests failed as expected. Will try to fix them.

laike9m commented 2 years ago

~Right now blocked by https://github.com/ultrajson/ultrajson/issues/482. We need ujson 4.2.0 to support 3.10, but ujson 4.2.0 needs installer 0.3.0 (released in a few days) to be successfully installed. So we can just wait.~

~To be more specific, we need a pre-built ujson wheel for Python 3.10, otherwise GitHub Actions will fail to build it.~

This is fixed.