Ethan Furman added the comment: > Eric V. Smith added the comment: > > But a datetime format string can end in "0", for example. > >>>> format(datetime.datetime.now(), '%H:%M:%S.00') > '20:25:27.00'
Not a problem, because once the digits were removed there would still be % : H M S and ., so the datetime format would be called. str format would only be called when the result of removing < ^ > 0 1 2 3 4 5 6 7 8 9 was an empty string. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18738> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com