Michele De Stefano's C++ Utilities
conversion.hpp File Reference

Utilities for converting data from/to Python. More...

#include <Python.h>
#include <stdexcept>
#include <string>
#include <complex>
#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/numeric/conversion/cast.hpp>

Go to the source code of this file.

Namespaces

 mds_utils
 Main namespace of all Michele De Stefano's C++ utilities.
 
 mds_utils::python
 Namespace of all Michele De Stefano's C++ Python utilities.
 

Functions

template<class T >
mds_utils::python::get (PyObject *po)
 Primary template for extracting a value from a Python object. More...
 
PyObject * mds_utils::python::to_python (void)
 Converts a value into a Python object. More...
 

Detailed Description

Utilities for converting data from/to Python.

This code depends on Python only and not on Boost Python.

Definition in file conversion.hpp.