A class type whose static member function convert
does the real work of the conversion.

bool has_get_pytype = false

PyTypeObject const * p = Conversion::get_pytype() .

Optional member - if Conversion has get_pytype member supply
true for this parameters.
If present get_pytype is used to document the return type
of functions using this conversion. The get_pytype may be implemented
using the classes and functions
from pytype_function.hppNOTE : For backward compatibility this parameter may be passed after
checking if BOOST_PYTHON_SUPPORTS_PY_SIGNATURES is defined (see
here).

Class template
to_python_converter synopsis

Class template
to_python_converter constructor

to_python_converter();

Effects: Registers a to_python converter which uses
Conversion::convert() to do its work.

Example

This example presumes that someone has implemented the standard noddy example
module from the Python documentation, and placed the corresponding
declarations in "noddy.h". Because
noddy_NoddyObject is the ultimate trivial extension type,
the example is a bit contrived: it wraps a function for which all
information is contained in the type of its return value.