Searched refs:basestate (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Modules/ |
D | datetimemodule.c | 3499 PyObject *basestate; in time_getstate() local 3502 basestate = PyString_FromStringAndSize((char *)self->data, in time_getstate() 3504 if (basestate != NULL) { in time_getstate() 3506 result = PyTuple_Pack(1, basestate); in time_getstate() 3508 result = PyTuple_Pack(2, basestate, self->tzinfo); in time_getstate() 3509 Py_DECREF(basestate); in time_getstate() 4579 PyObject *basestate; in datetime_getstate() local 4582 basestate = PyString_FromStringAndSize((char *)self->data, in datetime_getstate() 4584 if (basestate != NULL) { in datetime_getstate() 4586 result = PyTuple_Pack(1, basestate); in datetime_getstate() [all …]
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 4402 PyObject *basestate; in time_getstate() local 4405 basestate = PyBytes_FromStringAndSize((char *)self->data, in time_getstate() 4407 if (basestate != NULL) { in time_getstate() 4410 PyBytes_AS_STRING(basestate)[0] |= (1 << 7); in time_getstate() local 4412 result = PyTuple_Pack(1, basestate); in time_getstate() 4414 result = PyTuple_Pack(2, basestate, self->tzinfo); in time_getstate() 4415 Py_DECREF(basestate); in time_getstate() 6054 PyObject *basestate; in datetime_getstate() local 6057 basestate = PyBytes_FromStringAndSize((char *)self->data, in datetime_getstate() 6059 if (basestate != NULL) { in datetime_getstate() [all …]
|
/external/python/cpython3/Lib/ |
D | datetime.py | 1477 basestate = bytes([h, self._minute, self._second, 1480 return (basestate,) 1482 return (basestate, self._tzinfo) 2090 basestate = bytes([yhi, ylo, m, self._day, 2094 return (basestate,) 2096 return (basestate, self._tzinfo)
|