[Python-ideas] strptime without second argument as an inverse to __str__
Ryan Hiebert
ryan at ryanhiebert.com
Thu Aug 7 02:27:35 CEST 2014
> On Aug 6, 2014, at 7:19 PM, Alexander Belopolsky <alexander.belopolsky at gmail.com> wrote:
>
>
> On Wed, Aug 6, 2014 at 7:55 PM, Andrew Barnert <abarnert at yahoo.com <mailto:abarnert at yahoo.com>> wrote:
> Given that, unlike all the obvious parallel cases (int, float, etc.) this constructor will not accept the repr, I'm not sure the answer comes out the same.
>
> The parallel is in accepting str, not repr.
Indeed. The precedent for repr is that may be eval-able, not that the repr string can be passed into the constructor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140806/627b4b23/attachment.html>
More information about the Python-ideas
mailing list