Helper macro to define Exception types.
More-or-less is an alias to pyclass macro.
A /// comment on the exception type is its docstring and overrides the
stored documentation. Use // for developer notes.
This attribute must be applied to an inline module.
It defines a Python module in the form of a module_def function in the module;
this has to be used in a add_native_module to properly register the module.
Additionally, this macro defines ‘MODULE_NAME’ and ‘DOC’ in the module.
A /// comment on the module is its docstring and overrides the stored
module documentation. #[pyfunction] works the same way: its /// comment
is the function docstring and overrides the stored function documentation.
Use // for developer notes.