Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Functions
_
a
c
d
e
f
g
h
m
o
p
r
s
t
u
w
Variables
Typedefs
Classes
Class List
Class Hierarchy
Class Members
All
_
c
d
f
g
i
m
p
r
s
t
~
Functions
_
c
d
g
i
p
r
s
t
~
Variables
Typedefs
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
Functions
Variables
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
Typedefs
Macros
include
dynamic-graph
python
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