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

Ram Rachum ram.rachum at gmail.com
Mon Aug 4 18:17:14 CEST 2014


What do you think about having `datetime.strptime`, when called without a 
`format` for the second argument, be a precise inverse of 
`datetime.__str__`? This is because I don't currently see an obvious way to 
get an inverse of `datetime.__str__`, and this seems like an okay place to 
put it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140804/0887383a/attachment.html>


More information about the Python-ideas mailing list