Lines Matching refs:Py_BuildValue
547 :c:func:`Py_BuildValue` returns a tuple when its format string consists of zero
557 arglist = Py_BuildValue("(i)", arg);
593 is to call :c:func:`Py_BuildValue`. For example, if you want to pass an integral
598 arglist = Py_BuildValue("(l)", eventcode);
608 :c:func:`Py_BuildValue` may run out of memory, and this should be checked.
612 the above example, we use :c:func:`Py_BuildValue` to construct the dictionary. ::
616 dict = Py_BuildValue("{s:i}", "name", val);
805 PyObject *Py_BuildValue(const char *format, ...);
814 as tuples internally), :c:func:`Py_BuildValue` does not always build a tuple. It
824 Py_BuildValue("") None
825 Py_BuildValue("i", 123) 123
826 Py_BuildValue("iii", 123, 456, 789) (123, 456, 789)
827 Py_BuildValue("s", "hello") 'hello'
828 Py_BuildValue("y", "hello") b'hello'
829 Py_BuildValue("ss", "hello", "world") ('hello', 'world')
830 Py_BuildValue("s#", "hello", 4) 'hell'
831 Py_BuildValue("y#", "hello", 4) b'hell'
832 Py_BuildValue("()") ()
833 Py_BuildValue("(i)", 123) (123,)
834 Py_BuildValue("(ii)", 123, 456) (123, 456)
835 Py_BuildValue("(i,i)", 123, 456) (123, 456)
836 Py_BuildValue("[i,i]", 123, 456) [123, 456]
837 Py_BuildValue("{s:i,s:i}",
839 Py_BuildValue("((ii)(ii)) (ii)",
968 object, such as :c:func:`PyLong_FromLong` and :c:func:`Py_BuildValue`, pass