Home
last modified time | relevance | path

Searched refs:baserepr (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Modules/
D_collectionsmodule.c1605 PyObject *baserepr; in defdict_repr() local
1607 baserepr = PyDict_Type.tp_repr((PyObject *)dd); in defdict_repr()
1608 if (baserepr == NULL) in defdict_repr()
1617 Py_DECREF(baserepr); in defdict_repr()
1627 Py_DECREF(baserepr); in defdict_repr()
1632 PyString_AS_STRING(baserepr)); in defdict_repr()
1634 Py_DECREF(baserepr); in defdict_repr()
Ddatetimemodule.c4189 PyObject *baserepr; in datetime_repr() local
4215 baserepr = PyString_FromString(buffer); in datetime_repr()
4216 if (baserepr == NULL || ! HASTZINFO(self)) in datetime_repr()
4217 return baserepr; in datetime_repr()
4218 return append_keyword_tzinfo(baserepr, self->tzinfo); in datetime_repr()
/external/python/cpython3/Modules/
D_collectionsmodule.c2103 PyObject *baserepr; in defdict_repr() local
2106 baserepr = PyDict_Type.tp_repr((PyObject *)dd); in defdict_repr()
2107 if (baserepr == NULL) in defdict_repr()
2116 Py_DECREF(baserepr); in defdict_repr()
2126 Py_DECREF(baserepr); in defdict_repr()
2131 defrepr, baserepr); in defdict_repr()
2133 Py_DECREF(baserepr); in defdict_repr()
D_datetimemodule.c5511 PyObject *baserepr; in datetime_repr() local
5514 baserepr = PyUnicode_FromFormat( in datetime_repr()
5523 baserepr = PyUnicode_FromFormat( in datetime_repr()
5531 baserepr = PyUnicode_FromFormat( in datetime_repr()
5537 if (baserepr != NULL && DATE_GET_FOLD(self) != 0) in datetime_repr()
5538 baserepr = append_keyword_fold(baserepr, DATE_GET_FOLD(self)); in datetime_repr()
5539 if (baserepr == NULL || ! HASTZINFO(self)) in datetime_repr()
5540 return baserepr; in datetime_repr()
5541 return append_keyword_tzinfo(baserepr, self->tzinfo); in datetime_repr()