python-compat.hh
Go to the documentation of this file.
1 #ifndef DGPY_PYTHON_COMPAT_H
2 #define DGPY_PYTHON_COMPAT_H
3 
4 #include <string>
5 
6 #define PY_SSIZE_T_CLEAN
7 #include <Python.h>
8 
9 // Get any PyObject and get its str() representation as an std::string
10 std::string obj_to_str(PyObject* o);
11 
12 #endif
obj_to_str
std::string obj_to_str(PyObject *o)
Definition: python-compat.cc:4


dynamic-graph-python
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Oct 27 2023 02:16:36