2.6 KiB
Warning
Please be advised that the reference documentation discussing pybind11 internals is currently incomplete. Please refer to the previous sections and the pybind11 header files for the nitty gritty details.
Reference
Macros
PYBIND11_MODULE
Convenience classes for arbitrary Python types
Common member functions
object_api
Without reference counting
handle
With reference counting
object
reinterpret_borrow
reinterpret_steal
Convenience classes for specific Python types
module
pytypes
Convenience functions converting to Python types
make_tuple(Args&&...)
make_iterator(Iterator, Sentinel, Extra &&...)
make_iterator(Type &, Extra&&...)
make_key_iterator(Iterator, Sentinel, Extra &&...)
make_key_iterator(Type &, Extra&&...)
make_value_iterator(Iterator, Sentinel, Extra &&...)
make_value_iterator(Type &, Extra&&...)
Passing extra arguments to def
or class_
annotations
Embedding the interpreter
PYBIND11_EMBEDDED_MODULE
initialize_interpreter
finalize_interpreter
scoped_interpreter
Redirecting C++ streams
scoped_ostream_redirect
scoped_estream_redirect
add_ostream_redirect
Python built-in functions
python_builtins
Inheritance
See /classes
and /advanced/classes
for more detail.
PYBIND11_OVERRIDE
PYBIND11_OVERRIDE_PURE
PYBIND11_OVERRIDE_NAME
PYBIND11_OVERRIDE_PURE_NAME
get_override
Exceptions
error_already_set
builtin_exception
Literals
literals