Functions
python_compat.h File Reference
#include <Python.h>
#include <string>
Include dependency graph for python_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PyObject * pythonBorrowAttrString (PyObject *o, const char *name)
 
PyObject * pythonImport (const std::string &name)
 
std::string stringFromPython (PyObject *input)
 
PyObject * stringToPython (const std::string &input)
 
PyObject * stringToPython (const char *input)
 

Function Documentation

◆ pythonBorrowAttrString()

PyObject* pythonBorrowAttrString ( PyObject *  o,
const char *  name 
)
inline

Definition at line 47 of file python_compat.h.

◆ pythonImport()

PyObject* pythonImport ( const std::string &  name)
inline

Definition at line 39 of file python_compat.h.

◆ stringFromPython()

std::string stringFromPython ( PyObject *  input)
inline

Definition at line 26 of file python_compat.h.

◆ stringToPython() [1/2]

PyObject* stringToPython ( const std::string &  input)
inline

Definition at line 8 of file python_compat.h.

◆ stringToPython() [2/2]

PyObject* stringToPython ( const char *  input)
inline

Definition at line 17 of file python_compat.h.



tf2_py
Author(s):
autogenerated on Mon Feb 28 2022 22:27:24