Home
last modified time | relevance | path

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

/third_party/python/Modules/
D_datetimemodule.c4628 PyObject *basestate; in time_getstate() local
4631 basestate = PyBytes_FromStringAndSize((char *)self->data, in time_getstate()
4633 if (basestate != NULL) { in time_getstate()
4636 PyBytes_AS_STRING(basestate)[0] |= (1 << 7); in time_getstate() local
4638 result = PyTuple_Pack(1, basestate); in time_getstate()
4640 result = PyTuple_Pack(2, basestate, self->tzinfo); in time_getstate()
4641 Py_DECREF(basestate); in time_getstate()
6284 PyObject *basestate; in datetime_getstate() local
6287 basestate = PyBytes_FromStringAndSize((char *)self->data, in datetime_getstate()
6289 if (basestate != NULL) { in datetime_getstate()
[all …]
/third_party/python/Lib/
Ddatetime.py1530 basestate = bytes([h, self._minute, self._second,
1533 return (basestate,)
1535 return (basestate, self._tzinfo)
2138 basestate = bytes([yhi, ylo, m, self._day,
2142 return (basestate,)
2144 return (basestate, self._tzinfo)