[Python-ideas] strptime without second argument as an inverse to __str__
Alexander Belopolsky
alexander.belopolsky at gmail.com
Wed Aug 6 18:53:22 CEST 2014
On Wed, Aug 6, 2014 at 12:45 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> For my own classes I accept both year, month, day, ..., or a single string
> in __new__.
>
> But for the stdlib I agree that .fromstr() is the better approach.
>
Can you explain why what is good for your own classes is not good for
stdlib?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140806/ce7137e6/attachment.html>
More information about the Python-ideas
mailing list