Searched refs:listrepr (Results 1 – 2 of 2) sorted by relevance
495 PyObject *result=NULL, *keys, *listrepr, *tmp; in set_repr() local515 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()
614 PyObject *keys, *result=NULL, *listrepr; in set_repr() local626 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()