Home
last modified time | relevance | path

Searched refs:strobj (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_marshal.py388 strobj = "abcde"*3 variable in InstancingTestCase
425 self.helper(self.strobj)
426 self.helper3(self.strobj)
470 strobj = "this is an interned string" variable in InterningTestCase
471 strobj = sys.intern(strobj) variable in InterningTestCase
474 s = marshal.loads(marshal.dumps(self.strobj))
475 self.assertEqual(s, self.strobj)
476 self.assertEqual(id(s), id(self.strobj))
481 s = marshal.loads(marshal.dumps(self.strobj, 2))
482 self.assertEqual(s, self.strobj)
[all …]
/external/python/cpython3/Modules/
D_cursesmodule.c648 PyObject *strobj, *bytesobj = NULL; in PyCursesWindow_AddStr() local
659 if (!PyArg_ParseTuple(args,"O;str", &strobj)) in PyCursesWindow_AddStr()
663 if (!PyArg_ParseTuple(args,"Ol;str,attr", &strobj, &lattr)) in PyCursesWindow_AddStr()
669 if (!PyArg_ParseTuple(args,"iiO;int,int,str", &y, &x, &strobj)) in PyCursesWindow_AddStr()
674 if (!PyArg_ParseTuple(args,"iiOl;int,int,str,attr", &y, &x, &strobj, &lattr)) in PyCursesWindow_AddStr()
684 strtype = PyCurses_ConvertToString(self, strobj, &bytesobj, &wstr); in PyCursesWindow_AddStr()
686 strtype = PyCurses_ConvertToString(self, strobj, &bytesobj, NULL); in PyCursesWindow_AddStr()
724 PyObject *strobj, *bytesobj = NULL; in PyCursesWindow_AddNStr() local
735 if (!PyArg_ParseTuple(args,"Oi;str,n", &strobj, &n)) in PyCursesWindow_AddNStr()
739 if (!PyArg_ParseTuple(args,"Oil;str,n,attr", &strobj, &n, &lattr)) in PyCursesWindow_AddNStr()
[all …]
/external/python/cpython2/Python/
Dbltinmodule.c2842 filterstring(PyObject *func, PyObject *strobj) in filterstring() argument
2846 Py_ssize_t len = PyString_Size(strobj); in filterstring()
2854 if (PyString_CheckExact(strobj)) { in filterstring()
2855 Py_INCREF(strobj); in filterstring()
2856 return strobj; in filterstring()
2866 item = (*strobj->ob_type->tp_as_sequence->sq_item)(strobj, i); in filterstring()
2971 filterunicode(PyObject *func, PyObject *strobj) in filterunicode() argument
2975 Py_ssize_t len = PyUnicode_GetSize(strobj); in filterunicode()
2983 if (PyUnicode_CheckExact(strobj)) { in filterunicode()
2984 Py_INCREF(strobj); in filterunicode()
[all …]
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c1636 PyObject *strobj) in _multibytecodec_MultibyteStreamWriter_write() argument
1639 if (mbstreamwriter_iwrite(self, strobj)) in _multibytecodec_MultibyteStreamWriter_write()
1657 PyObject *strobj; in _multibytecodec_MultibyteStreamWriter_writelines() local
1668 strobj = PySequence_GetItem(lines, i); in _multibytecodec_MultibyteStreamWriter_writelines()
1669 if (strobj == NULL) in _multibytecodec_MultibyteStreamWriter_writelines()
1672 r = mbstreamwriter_iwrite(self, strobj); in _multibytecodec_MultibyteStreamWriter_writelines()
1673 Py_DECREF(strobj); in _multibytecodec_MultibyteStreamWriter_writelines()
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c1574 mbstreamwriter_write(MultibyteStreamWriterObject *self, PyObject *strobj) in mbstreamwriter_write() argument
1576 if (mbstreamwriter_iwrite(self, strobj)) in mbstreamwriter_write()
1585 PyObject *strobj; in mbstreamwriter_writelines() local
1596 strobj = PySequence_GetItem(lines, i); in mbstreamwriter_writelines()
1597 if (strobj == NULL) in mbstreamwriter_writelines()
1600 r = mbstreamwriter_iwrite(self, strobj); in mbstreamwriter_writelines()
1601 Py_DECREF(strobj); in mbstreamwriter_writelines()
/external/python/cpython3/Objects/
Dlongobject.c2122 PyObject *strobj; in PyLong_FromString() local
2461 strobj = PyUnicode_FromStringAndSize(orig_str, slen); in PyLong_FromString()
2462 if (strobj == NULL) { in PyLong_FromString()
2467 base, strobj); in PyLong_FromString()
2468 Py_DECREF(strobj); in PyLong_FromString()
2480 PyObject *result, *strobj; in _PyLong_FromBytes() local
2487 strobj = PyBytes_FromStringAndSize(s, Py_MIN(len, 200)); in _PyLong_FromBytes()
2488 if (strobj != NULL) { in _PyLong_FromBytes()
2491 base, strobj); in _PyLong_FromBytes()
2492 Py_DECREF(strobj); in _PyLong_FromBytes()
/external/python/cpython2/Objects/
Dlongobject.c1720 PyObject *strobj, *strrepr; in PyLong_FromString() local
1982 strobj = PyString_FromStringAndSize(orig_str, slen); in PyLong_FromString()
1983 if (strobj == NULL) in PyLong_FromString()
1985 strrepr = PyObject_Repr(strobj); in PyLong_FromString()
1986 Py_DECREF(strobj); in PyLong_FromString()