frameobject.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /* Frame object interface */
  2. #ifndef Py_CPYTHON_FRAMEOBJECT_H
  3. # error "this header file must not be included directly"
  4. #endif
  5. /* Standard object interface */
  6. PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
  7. PyObject *, PyObject *);
  8. /* The rest of the interface is specific for frame objects */
  9. /* Conversions between "fast locals" and locals in dictionary */
  10. PyAPI_FUNC(void) PyFrame_LocalsToFast(PyFrameObject *, int);
  11. /* -- Caveat emptor --
  12. * The concept of entry frames is an implementation detail of the CPython
  13. * interpreter. This API is considered unstable and is provided for the
  14. * convenience of debuggers, profilers and state-inspecting tools. Notice that
  15. * this API can be changed in future minor versions if the underlying frame
  16. * mechanism change or the concept of an 'entry frame' or its semantics becomes
  17. * obsolete or outdated. */
  18. PyAPI_FUNC(int) _PyFrame_IsEntryFrame(PyFrameObject *frame);
  19. PyAPI_FUNC(int) PyFrame_FastToLocalsWithError(PyFrameObject *f);
  20. PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *);