Lines Matching refs:args

1763  * computed from the y,m,d args.
1771 PyObject *args;
1779 args = Py_BuildValue("iiiiiiiii",
1785 if (args == NULL) {
1790 result = _PyObject_CallMethodIdOneArg(time, &PyId_struct_time, args);
1792 Py_DECREF(args);
2510 delta_new(PyTypeObject *type, PyObject *args, PyObject *kw)
2532 if (PyArg_ParseTupleAndKeywords(args, kw, "|OOOOOOO:__new__",
2632 PyObject *args = PyUnicode_FromString("");
2634 if (args == NULL) {
2641 Py_SETREF(args, PyUnicode_FromFormat("days=%d", GET_TD_DAYS(self)));
2642 if (args == NULL) {
2649 Py_SETREF(args, PyUnicode_FromFormat("%U%sseconds=%d", args, sep,
2651 if (args == NULL) {
2658 Py_SETREF(args, PyUnicode_FromFormat("%U%smicroseconds=%d", args, sep,
2660 if (args == NULL) {
2665 if (PyUnicode_GET_LENGTH(args) == 0) {
2666 Py_SETREF(args, PyUnicode_FromString("0"));
2667 if (args == NULL) {
2673 args);
2674 Py_DECREF(args);
2900 date_new(PyTypeObject *type, PyObject *args, PyObject *kw)
2908 if (PyTuple_GET_SIZE(args) == 1) {
2909 PyObject *state = PyTuple_GET_ITEM(args, 0);
2942 if (PyArg_ParseTupleAndKeywords(args, kw, "iii", date_kws,
3015 * which expects a function that takes an *args tuple, whereas the argument
3019 datetime_date_fromtimestamp_capi(PyObject *cls, PyObject *args)
3024 if (PyArg_UnpackTuple(args, "fromtimestamp", 1, 1, &timestamp)) {
3035 date_fromordinal(PyObject *cls, PyObject *args)
3040 if (PyArg_ParseTuple(args, "i:fromordinal", &ordinal)) {
3098 date_fromisocalendar(PyObject *cls, PyObject *args, PyObject *kw)
3105 if (PyArg_ParseTupleAndKeywords(args, kw, "iii:fromisocalendar",
3251 date_strftime(PyDateTime_Date *self, PyObject *args, PyObject *kw)
3262 if (! PyArg_ParseTupleAndKeywords(args, kw, "U:strftime", keywords,
3276 date_format(PyDateTime_Date *self, PyObject *args)
3280 if (!PyArg_ParseTuple(args, "U:__format__", &format))
3484 date_replace(PyDateTime_Date *self, PyObject *args, PyObject *kw)
3492 if (! PyArg_ParseTupleAndKeywords(args, kw, "|iii:replace", date_kws,
3814 PyObject *args, *state;
3822 args = PyObject_CallNoArgs(getinitargs);
3826 args = PyTuple_New(0);
3828 if (args == NULL) {
3834 Py_DECREF(args);
3838 return Py_BuildValue("(ONN)", Py_TYPE(self), args, state);
3910 timezone_new(PyTypeObject *type, PyObject *args, PyObject *kw)
3914 if (PyArg_ParseTupleAndKeywords(args, kw, "O!|U:timezone", timezone_kws,
4239 time_new(PyTypeObject *type, PyObject *args, PyObject *kw)
4250 if (PyTuple_GET_SIZE(args) >= 1 && PyTuple_GET_SIZE(args) <= 2) {
4251 PyObject *state = PyTuple_GET_ITEM(args, 0);
4252 if (PyTuple_GET_SIZE(args) == 2) {
4253 tzinfo = PyTuple_GET_ITEM(args, 1);
4288 if (PyArg_ParseTupleAndKeywords(args, kw, "|iiiiO$i", time_kws,
4367 time_isoformat(PyDateTime_Time *self, PyObject *args, PyObject *kw)
4383 if (!PyArg_ParseTupleAndKeywords(args, kw, "|s:isoformat", keywords, &timespec))
4432 time_strftime(PyDateTime_Time *self, PyObject *args, PyObject *kw)
4439 if (! PyArg_ParseTupleAndKeywords(args, kw, "U:strftime", keywords,
4596 time_replace(PyDateTime_Time *self, PyObject *args, PyObject *kw)
4607 if (! PyArg_ParseTupleAndKeywords(args, kw, "|iiiiO$i:replace",
4714 time_reduce_ex(PyDateTime_Time *self, PyObject *args)
4717 if (!PyArg_ParseTuple(args, "i:__reduce_ex__", &proto))
4916 datetime_new(PyTypeObject *type, PyObject *args, PyObject *kw)
4930 if (PyTuple_GET_SIZE(args) >= 1 && PyTuple_GET_SIZE(args) <= 2) {
4931 PyObject *state = PyTuple_GET_ITEM(args, 0);
4932 if (PyTuple_GET_SIZE(args) == 2) {
4933 tzinfo = PyTuple_GET_ITEM(args, 1);
4968 if (PyArg_ParseTupleAndKeywords(args, kw, "iii|iiiiO$i", datetime_kws,
5181 datetime_fromtimestamp(PyObject *cls, PyObject *args, PyObject *kw)
5188 if (! PyArg_ParseTupleAndKeywords(args, kw, "O|O:fromtimestamp",
5208 datetime_utcfromtimestamp(PyObject *cls, PyObject *args)
5213 if (PyArg_ParseTuple(args, "O:utcfromtimestamp", &timestamp))
5221 datetime_strptime(PyObject *cls, PyObject *args)
5227 if (!PyArg_ParseTuple(args, "UU:strptime", &string, &format))
5241 datetime_combine(PyObject *cls, PyObject *args, PyObject *kw)
5249 if (PyArg_ParseTupleAndKeywords(args, kw, "O!O!|O:combine", keywords,
5746 datetime_isoformat(PyDateTime_DateTime *self, PyObject *args, PyObject *kw)
5763 if (!PyArg_ParseTupleAndKeywords(args, kw, "|Cs:isoformat", keywords, &sep, &timespec))
6049 datetime_replace(PyDateTime_DateTime *self, PyObject *args, PyObject *kw)
6063 if (! PyArg_ParseTupleAndKeywords(args, kw, "|iiiiiiiO$i:replace",
6199 datetime_astimezone(PyDateTime_DateTime *self, PyObject *args, PyObject *kw)
6208 if (! PyArg_ParseTupleAndKeywords(args, kw, "|O:astimezone", keywords,
6507 datetime_reduce_ex(PyDateTime_DateTime *self, PyObject *args)
6510 if (!PyArg_ParseTuple(args, "i:__reduce_ex__", &proto))