Victor Stinner
Victor Stinner
Draft PR: Python 3.11a6 has not been released yet.
> Draft PR: Python 3.11a6 has not been released yet. It has been released: https://pythoninsider.blogspot.com/2022/03/python-3110a6-is-available.html
> gevent testing / manylinux_arm64 (3.9) (pull_request) Failing after 33m — manylinux_arm64 (3.9) The PyFrame_GetCode() function is missing: ``` Successfully setup CPython (3.9.10) (...) latest: Pulling from pypa/manylinux2014_aarch64 (...) Building...
> Please merge. Sadly, some CI tests are failing :-( So far, I failed to understand why it's failing. It seems like a real bug in my PR, but I...
I reported the issue to Cython: https://github.com/cython/cython/issues/4827 I suggest to continue discussing the Cython there, since this is a PR on the gevent project ;-)
> src/gevent/greenlet.c:6218:43: error: ‘PyFrameObject’ {aka ‘struct _frame’} has no member named ‘f_code’ This file comes from greenlet, not gevent, no?
Oh right, the problem comes from the ``_extract_stack()`` function of src/gevent/greenlet.py. It uses the following code from src/gevent/_gevent_cgreenlet.pxd: ``` cdef extern from "frameobject.h": ctypedef class types.FrameType [object PyFrameObject]: cdef CodeType...
The PyFrameObject.f_code member has been removed by https://github.com/python/cpython/commit/b11a951f16f0603d98de24fee5c023df83ea552c : see https://bugs.python.org/issue44032 See also "[C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API": https://bugs.python.org/issue40421
Update: * I documented PyFrameObject structure changes in What's New in Python 3.11: https://docs.python.org/dev/whatsnew/3.11.html#c-api-changes * I moved the PyFrameObject structure to the internal C API: https://bugs.python.org/issue46836 * I proposed a...
If you believe that the documentation is uncomplete about cancellation, please propose a new text, and I will update the doc. Currently, the doc says "If the wait is cancelled,...