Module trampoline

Source
Expand description

Trampolines for various pyfunction and pymethod implementations.

They exist to monomorphise std::panic::catch_unwind once into PyO3, rather than inline in every function, thus saving a huge amount of compile-time complexity.

Macros§

trampoline πŸ”’
trampolines πŸ”’

Functions§

binaryfunc⚠
cfunction_with_keywords⚠
dealloc πŸ”’ ⚠
descrgetfunc⚠
fastcall_with_keywords⚠
getattrofunc⚠
getbufferproc⚠
getiterfunc⚠
hashfunc⚠
inquiry⚠
ipowfunc⚠
iternextfunc⚠
lenfunc⚠
module_init⚠
newfunc⚠
noargs⚠
objobjproc⚠
panic_result_into_callback_output πŸ”’
Converts the output of std::panic::catch_unwind into a Python function output, either by raising a Python exception or by unwrapping the contained success output.
releasebufferproc⚠Non-Py_LIMITED_API or Py_3_11
reprfunc⚠
richcmpfunc⚠
setattrofunc⚠
ssizeargfunc⚠
ternaryfunc⚠
trampoline πŸ”’ ⚠
Implementation of trampoline functions, which sets up a GILPool and calls F.
trampoline_unraisable πŸ”’ ⚠
Implementation of trampoline for functions which can’t return an error.
unaryfunc⚠
⚠️ Internal Docs ⚠️ Not Public API πŸ‘‰ Official Docs Here