[issue40643] Improve doc-strings for datetime.strftime & strptime

Edison Abahurire report at bugs.python.org
Sat May 16 07:29:24 EDT 2020


New submission from Edison Abahurire <abahedison at gmail.com>:

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 <report at bugs.python.org>
<https://bugs.python.org/issue40643>
_______________________________________


More information about the Python-bugs-list mailing list