This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hct
Recipients eric.smith, ezio.melotti, flox, hct, mark.dickinson, meador.inge, python-dev, r.david.murray
Date 2014-03-19.23:53:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395273239.74.0.927674766388.issue7994@psf.upfronthosting.co.za>
In-reply-to
Content
unlike NoneType, datetime doesn't throw exception. is returning the format specifier the intended behaviour of this fix?


>>> import datetime
>>> a=datetime.datetime(1999,7,7)
>>> str(a)
'1999-07-07 00:00:00'
>>> "{:s}".format(a)
's'
>>> "{:7s}".format(a)
'7s'
>>> "{!s}".format(a)
'1999-07-07 00:00:00'
>>>
History
Date User Action Args
2014-03-19 23:53:59hctsetrecipients: + hct, mark.dickinson, eric.smith, ezio.melotti, r.david.murray, flox, meador.inge, python-dev
2014-03-19 23:53:59hctsetmessageid: <1395273239.74.0.927674766388.issue7994@psf.upfronthosting.co.za>
2014-03-19 23:53:59hctlinkissue7994 messages
2014-03-19 23:53:59hctcreate