d_to_python

Returns a new (owned) reference to a Python object based on the passed argument. If the passed argument is a PyObject*, this "steals" the reference. (In other words, it returns the PyObject* without changing its reference count.) If the passed argument is a PydObject, this returns a new reference to whatever the PydObject holds a reference to.

If the passed argument can't be converted to a PyObject, a Python RuntimeError will be raised and this function will return null.

d_to_python
(
T
)
(
T t
)

Meta