Open laike9m opened 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
Currently the code does not use co_lnotab directly.
I tried running the test suite under Python 3.10 rc2. Many tests failed as expected. Will try to fix them.
~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.
Python 3.10 changelog
Bytecode changes can be found by viewing magic number change history![image](https://user-images.githubusercontent.com/2592205/135779834-75a75b61-bb65-4b90-ba5f-1a008877e870.png)
Undo making 'annotations' future by default bpo-38605
dis.findlinestarts
to determine lineno, which is already usingcode.co_lines
internally (see https://bugs.python.org/issue44875). So we're good.Other bytecode related changes: