Message406395
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. |
|
Date |
User |
Action |
Args |
2021-11-16 10:40:29 | hyzyla | set | recipients:
+ hyzyla |
2021-11-16 10:40:29 | hyzyla | set | messageid: <1637059229.27.0.494506093671.issue45814@roundup.psfhosted.org> |
2021-11-16 10:40:29 | hyzyla | link | issue45814 messages |
2021-11-16 10:40:29 | hyzyla | create | |
|