New submission from Edison Abahurire <[email protected]>:
The docstring for strftime is:
```def strftime(self, fmt):
"Format using strftime()."
```
And that of strptime:
````def strptime(cls, date_string, format):
'string, format -> new datetime parsed from a string (like
time.strptime()).'
````
I feel like both could use a better explanation for users who will access them
using >>> help(datetime.strftime) and users using IDEs that provide doc-strings
on-hover over a function.
----------
messages: 369040
nosy: edison.abahurire, nanjekyejoannah
priority: normal
severity: normal
status: open
title: Improve doc-strings for datetime.strftime & strptime
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40643>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com