This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hyzyla
Recipients hyzyla
Date 2021-11-16.10:40:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637059229.27.0.494506093671.issue45814@roundup.psfhosted.org>
In-reply-to
Content
Method datetime.time.strftime in Python and C implementation has different signature. Python implementation use `fmt` as argument and C implementation use `format` as argument. 

Python implementation:
```python
def strftime(self, fmt):
  ...
```

C implementation
```C
static PyObject *
time_strftime(PyDateTime_Time *self, PyObject *args, PyObject *kw)
{
    PyObject *result;
    PyObject *tuple;
    PyObject *format;
    static char *keywords[] = {"format", NULL};

    if (! PyArg_ParseTupleAndKeywords(args, kw, "U:strftime", keywords,
                                      &format))
        return NULL;
```

My suggestion to use the same argument name for both implementations, for example to use `format` as in C implementation.
History
Date User Action Args
2021-11-16 10:40:29hyzylasetrecipients: + hyzyla
2021-11-16 10:40:29hyzylasetmessageid: <1637059229.27.0.494506093671.issue45814@roundup.psfhosted.org>
2021-11-16 10:40:29hyzylalinkissue45814 messages
2021-11-16 10:40:29hyzylacreate