#include <attr.h>
Public Types | |
using | callback = std::function< void(PyHeapTypeObject *heap_type)> |
Public Member Functions | |
custom_type_setup (callback value) | |
Public Attributes | |
callback | value |
Specifies a custom callback with signature void (PyHeapTypeObject*)
that may be used to customize the Python type.
The callback is invoked immediately before PyType_Ready
.
Note: This is an advanced interface, and uses of it may require changes to work with later versions of pybind11. You may wish to consult the implementation of make_new_python_type
in detail/classes.h
to understand the context in which the callback will be run.
using custom_type_setup::callback = std::function<void(PyHeapTypeObject *heap_type)> |
|
inlineexplicit |