Home
last modified time | relevance | path

Searched refs:listrepr (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Objects/
Dsetobject.c495 PyObject *result=NULL, *keys, *listrepr, *tmp; in set_repr() local
515 listrepr = PyObject_Repr(keys); in set_repr()
517 if (listrepr == NULL) in set_repr()
519 tmp = PyUnicode_Substring(listrepr, 1, PyUnicode_GET_LENGTH(listrepr)-1); in set_repr()
520 Py_DECREF(listrepr); in set_repr()
523 listrepr = tmp; in set_repr()
528 listrepr); in set_repr()
530 result = PyUnicode_FromFormat("{%U}", listrepr); in set_repr()
531 Py_DECREF(listrepr); in set_repr()
/external/python/cpython2/Objects/
Dsetobject.c614 PyObject *keys, *result=NULL, *listrepr; in set_repr() local
626 listrepr = PyObject_Repr(keys); in set_repr()
628 if (listrepr == NULL) in set_repr()
632 PyString_AS_STRING(listrepr)); in set_repr()
633 Py_DECREF(listrepr); in set_repr()