Searched refs:py2_const_cast (Results 1 – 2 of 2) sorted by relevance
199 inline char *py2_const_cast(const char *s) { return const_cast<char *>(s); } in py2_const_cast() function201 inline const char *py2_const_cast(const char *s) { return s; } in py2_const_cast() function329 PyObject_CallMethod(m_py_obj, py2_const_cast(name),330 py2_const_cast(format), PythonFormat<T>::get(t)...);339 PyObject *obj = PyObject_CallFunction(m_py_obj, py2_const_cast(format),
1546 file_obj = PyFile_FromFile(file.GetStream(), py2_const_cast(""), in FromFile()1547 py2_const_cast(mode), [](FILE *) { return 0; }); in FromFile()