[Python-ideas] Making datetime __str__ and isoformat more consistent

Alexander Belopolsky alexander.belopolsky at gmail.com
Sat Nov 2 01:36:07 CET 2013


On Fri, Nov 1, 2013 at 8:28 PM, Andrew Barnert <abarnert at yahoo.com> wrote:

> What about just adding a fromisoformat classmethod constructor that's
> meant specifically for round tripping isoformat?


What about following the lead of int(), float(), etc. and allow datetime()
take a single string argument?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131101/c1df1c55/attachment.html>


More information about the Python-ideas mailing list