Home | History | Annotate | Download | only in Interpreter

Lines Matching refs:py_obj

95 PythonString::PythonString (PyObject *py_obj) :
96 PythonObject(py_obj)
125 PythonString::Reset (PyObject *py_obj)
127 if (py_obj && PyString_Check(py_obj))
128 return PythonObject::Reset(py_obj);
131 return py_obj == NULL;
160 PythonInteger::PythonInteger (PyObject *py_obj) :
161 PythonObject(py_obj)
186 PythonInteger::Reset (PyObject *py_obj)
188 if (py_obj && PyInt_Check(py_obj))
189 return PythonObject::Reset(py_obj);
192 return py_obj == NULL;
224 PythonList::PythonList (PyObject *py_obj) :
225 PythonObject(py_obj)
245 PythonList::Reset (PyObject *py_obj)
247 if (py_obj && PyList_Check(py_obj))
248 return PythonObject::Reset(py_obj);
251 return py_obj == NULL;
293 PythonDictionary::PythonDictionary (PyObject *py_obj) :
294 PythonObject(py_obj)
314 PythonDictionary::Reset (PyObject *py_obj)
316 if (py_obj && PyDict_Check(py_obj))
317 return PythonObject::Reset(py_obj);
320 return py_obj == NULL;
357 PyObject *py_obj = PyDict_GetItem(m_py_obj, key.GetPythonObject());
358 if (py_obj && PyString_Check(py_obj))
359 return PyString_AsString(py_obj);
369 PyObject *py_obj = PyDict_GetItem(m_py_obj, key.GetPythonObject());
370 if (py_obj)
372 if (PyInt_Check(py_obj))
373 return PyInt_AsLong(py_obj);
375 if (PyLong_Check(py_obj))
376 return PyLong_AsLong(py_obj);