New submission from Edison Abahurire <abahedi...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40643>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to