Lines Matching refs:Take
66 auto str = Take<PythonString>(str_obj); in As()
333 *this = Take<PythonBytes>(PyBytes_FromStringAndSize(data, bytes.size())); in SetBytes()
350 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length)); in PythonByteArray()
389 return Take<PythonString>(str); in FromUTF8()
468 *this = Take<PythonInteger>(PyLong_FromLongLong(value)); in SetInteger()
516 *this = Take<PythonBoolean>(PyBool_FromLong(value)); in SetValue()
529 *this = Take<PythonList>(PyList_New(0)); in PythonList()
533 *this = Take<PythonList>(PyList_New(list_size)); in PythonList()
585 *this = Take<PythonTuple>(PyTuple_New(0)); in PythonTuple()
589 *this = Take<PythonTuple>(PyTuple_New(tuple_size)); in PythonTuple()
656 *this = Take<PythonDictionary>(PyDict_New()); in PythonDictionary()
778 return Take<PythonModule>(mod); in Import()
1244 auto pybuffer = Take<PythonObject>(pybuffer_p); in Write()
1461 return Take<PythonFile>(file_obj); in FromFile()
1476 Take<PythonObject>(o); in Init()
1501 auto code_ref = Take<PythonObject>(code); in runStringOneLine()
1508 return Take<PythonObject>(result); in runStringOneLine()
1521 return Take<PythonObject>(result); in runStringMultiLine()