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.c2114 PyObject *baserepr; in defdict_repr() local
2117 baserepr = PyDict_Type.tp_repr((PyObject *)dd); in defdict_repr()
2118 if (baserepr == NULL) in defdict_repr()
2127 Py_DECREF(baserepr); in defdict_repr()
2137 Py_DECREF(baserepr); in defdict_repr()
2142 defrepr, baserepr); in defdict_repr()
2144 Py_DECREF(baserepr); in defdict_repr()
D_datetimemodule.c5272 PyObject *baserepr; in datetime_repr() local
5275 baserepr = PyUnicode_FromFormat( in datetime_repr()
5284 baserepr = PyUnicode_FromFormat( in datetime_repr()
5292 baserepr = PyUnicode_FromFormat( in datetime_repr()
5298 if (baserepr != NULL && DATE_GET_FOLD(self) != 0) in datetime_repr()
5299 baserepr = append_keyword_fold(baserepr, DATE_GET_FOLD(self)); in datetime_repr()
5300 if (baserepr == NULL || ! HASTZINFO(self)) in datetime_repr()
5301 return baserepr; in datetime_repr()
5302 return append_keyword_tzinfo(baserepr, self->tzinfo); in datetime_repr()