Searched refs:py_val (Results 1 – 2 of 2) sorted by relevance
101 _pysqlite_long_as_int64(PyObject * py_val) in _pysqlite_long_as_int64() argument104 long long value = PyLong_AsLongLongAndOverflow(py_val, &overflow); in _pysqlite_long_as_int64()115 if (_PyLong_AsByteArray((PyLongObject *)py_val, in _pysqlite_long_as_int64()
545 _pysqlite_set_result(sqlite3_context* context, PyObject* py_val) in _pysqlite_set_result() argument547 if (py_val == Py_None) { in _pysqlite_set_result()549 } else if (PyLong_Check(py_val)) { in _pysqlite_set_result()550 sqlite_int64 value = _pysqlite_long_as_int64(py_val); in _pysqlite_set_result()554 } else if (PyFloat_Check(py_val)) { in _pysqlite_set_result()555 sqlite3_result_double(context, PyFloat_AsDouble(py_val)); in _pysqlite_set_result()556 } else if (PyUnicode_Check(py_val)) { in _pysqlite_set_result()558 const char *str = PyUnicode_AsUTF8AndSize(py_val, &sz); in _pysqlite_set_result()568 } else if (PyObject_CheckBuffer(py_val)) { in _pysqlite_set_result()570 if (PyObject_GetBuffer(py_val, &view, PyBUF_SIMPLE) != 0) { in _pysqlite_set_result()