Closed SmartManoj closed 1 year ago
https://docs.python.org/3.11/whatsnew/3.11.html:
The PyFrameObject structure members have been removed from the public C API.
While the documentation notes that the PyFrameObject fields are subject to change at any time, they have been stable for a long time and were used in several popular extensions.
In Python 3.11, the frame struct was reorganized to allow performance optimizations. Some fields were removed entirely, as they were details of the old implementation.
PyFrameObject fields:
- f_back: use PyFrame_GetBack().
- f_blockstack: removed.
- f_builtins: use PyFrame_GetBuiltins().
- f_code: use PyFrame_GetCode().
- f_gen: use PyFrame_GetGenerator().
- f_globals: use PyFrame_GetGlobals().
- f_iblock: removed.
- f_lasti: use PyFrame_GetLasti(). Code using f_lasti with PyCode_Addr2Line() should use PyFrame_GetLineNumber() instead; it may be faster.
- f_lineno: use PyFrame_GetLineNumber()
- f_locals: use PyFrame_GetLocals().
- f_stackdepth: removed.
- f_state: no public API (renamed to f_frame.f_state).
- f_trace: no public API.
- f_trace_lines: use PyObject_GetAttrString((PyObject*)frame, "f_trace_lines").
- f_trace_opcodes: use PyObject_GetAttrString((PyObject*)frame, "f_trace_opcodes").
- f_localsplus: no public API (renamed to f_frame.localsplus).
- f_valuestack: removed.
We'll have to wait for Cython to support Python 3.11 as the generated C++ code is done by Cython
Hello @sirfz,
I think Cython is now supporting Python 3.11.
Are you planning to support it in tesserocr as well?
Did you try building and it failed?
Did you try building and it failed?
The build doesn't fail and tesserocr works as expected. I'd say that this issue can be closed.
yep!