An exception class used by python_to_d.
Helper function for creating a PyTuple from a series of D items.
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.
Convert a d array to a python array.array. array.array does not support 8 byte integers.
Convert a D object to python bytes (str, in python 2).
Extend pyd's conversion mechanism. Will be used by d_to_python only if d_to_python cannot convert its argument by regular means.
Extend pyd's conversion mechanims. Will be used by python_to_d only if python_to_d cannot convert its argument by regular means.
Check T against format
Constructs an object based on the type of the argument passed in.
Convert an array.array object to a D object.
Convert a Python new-style buffer to a D object.
Convert an iterable Python object to a D object.
This converts a PyObject* to a D type. The template argument is the type to convert to. The function argument is the PyObject* to convert. For instance:
Wrap a D input range as a python iterator object.
Wrapper type wrapping a D input range as a python iterator object
Check that T is a pointer to a rectangular static array.
Some reflective information about multidimensional arrays
generate a struct format string from T
This module contains some useful type conversion functions. The two most interesting operations here are python_to_d and d_to_python.
Additionally, the py function is provided as a convenience to directly convert a D object into an instance of PydObject.
To convert a PydObject to a D type, use PydObject.to_d.