[Python-ideas] strptime without second argument as an inverse to __str__

Alexander Belopolsky alexander.belopolsky at gmail.com
Mon Aug 4 21:23:08 CEST 2014


On Mon, Aug 4, 2014 at 3:00 PM, Skip Montanaro <skip at pobox.com> wrote:

> > Why is this question relevant for Ram's proposal?
>
> It would seem to have some impact on how hard it is to create a
> general inverse. Will one format work for all platforms ("one and
> done"), or will the inverse implementation potentially have to be
> updated as new platforms come into (or go out of) existence?


I think str(datetime) format is an implementation detail to the same extent
as str(int) or str(float) is.  In the past, these variations did not
prevent providing (sometimes imperfect) inverse.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140804/56c8995c/attachment.html>


More information about the Python-ideas mailing list