| 166 | // bpo-40421 added PyFrame_GetBack() to Python 3.9.0b1 |
| 167 | #if PY_VERSION_HEX < 0x030900B1 && !defined(PYPY_VERSION) |
| 168 | static inline PyFrameObject* PyFrame_GetBack(PyFrameObject *frame) |
| 169 | { |
| 170 | assert(frame != _Py_NULL); |
| 171 | return _Py_CAST(PyFrameObject*, Py_XNewRef(frame->f_back)); |
| 172 | } |
| 173 | #endif |
| 174 | |
| 175 | #if !defined(PYPY_VERSION) |
no test coverage detected