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 Anthony Sottile
Recipients Anthony Sottile
Date 2020-07-09.17:01:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594314108.83.0.615817711225.issue41260@roundup.psfhosted.org>
In-reply-to
Content
C:

https://github.com/python/cpython/blob/8b33961e4bc4020d8b2d5b949ad9d5c669300e89/Modules/_datetimemodule.c#L3183

pure python:

https://github.com/python/cpython/blob/8b33961e4bc4020d8b2d5b949ad9d5c669300e89/Lib/datetime.py#L927


this makes it difficult to properly type in mypy:

https://github.com/python/typeshed/blob/209b6bb127f61fe173a60776e23883ac450cf1c8/stdlib/2and3/datetime.pyi#L55

and calling with `.strftime(fmt=...)` or `.strftime(format=...)` is inconsistent

(that said, it should _probably_ be a positional-only argument)
History
Date User Action Args
2020-07-09 17:01:48Anthony Sottilesetrecipients: + Anthony Sottile
2020-07-09 17:01:48Anthony Sottilesetmessageid: <1594314108.83.0.615817711225.issue41260@roundup.psfhosted.org>
2020-07-09 17:01:48Anthony Sottilelinkissue41260 messages
2020-07-09 17:01:48Anthony Sottilecreate