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

Ethan Furman ethan at stoneleaf.us
Wed Aug 6 19:02:19 CEST 2014


On 08/06/2014 09:53 AM, Alexander Belopolsky wrote:
> On Wed, Aug 6, 2014 at 12:45 PM, Ethan Furman 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?

I tolerate a higher level of risk in my own work, but the stdlib should be more stable.

--
~Ethan~


More information about the Python-ideas mailing list