Repository navigation
Merge py3.11 branch to main - #8822
Conversation
This will make Numba compile against the Python 3.11 code-base and C-level API. Note that some of the Numba functionality may not be available as a result.
With Python 3.11 a new Bytecode has been introduced: `RESUME`. The documentation states that: ``` RESUME has been added. It is a no-op. Performs internal tracing, debugging and optimization checks. ``` And so, this is implemented as a `NOP` (no-operation) in Numba.
As title
…/compile-hack' and 'python3.11_partial/implement_resume' into python3.11 * python3.11_partial/version_bump: bump max python version * python3.11_partial/compile-hack: Comment out all C-level changes * python3.11_partial/implement_resume: implement new Python 3.11 opcode: RESUME
It's only used in CALL which checks if the TOS is a NULL.
Not sure why MakeFunctionToJitFunction is picking up the <listcomp> in the failing test: - numba.tests.test_looplifting.TestLoopLiftingInAction.test_lift_listcomp_block0
test_withlifting tests report errors=31, skipped=2, expected failures=2 out of 68 tests. A lot of the tests are failing due to cloudpickle incompatibility.
# Conflicts: # numba/core/interpreter.py
failng test numba.tests.test_parfors.TestParforChunksizing.test_all_iterations_reset_chunksize
Redo py3.11 sync branch with main
|
Notes for reviewer:
|
Note: buildscript changes from py3.11 branch are ignored.
Thanks for these notes, much appreciated.
Locally I've taken git checkout <main branch> -- buildscripts azure-pipelines.ymland have committed the result. This to create a commit series that merges the 3.11 work with
Seems correct.
Seems correct. The CI matrix will probably need some further adjustment, as will general build configuration, but not for this PR as it seems out of scope. |
|
RE build failures.
|
stuartarchibald
left a comment
There was a problem hiding this comment.
Thanks for the PR @sklam, great to see the Python 3.11 branch merged to main. This is approved with knowledge of known test failures #8822 (comment). The validity of this merge was checked through #8822 (comment), it appears to be as expected.
Python 3.11 support was merged in numba/numba#8822
Based on
#8814#8831. This merges py3.11 into main.