[New-bugs-announce] [issue7413] datetime.datetime.isoformat truncation problem

Jean-Paul Calderone report at bugs.python.org
Tue Dec 1 03:03:01 CET 2009

New submission from Jean-Paul Calderone <exarkun at divmod.com>:

Passing NUL as the separator to isoformat drops the time part of the
result entirely:

>>> import datetime
>>> datetime.datetime.today().isoformat()
>>> datetime.datetime.today().isoformat('x')
>>> datetime.datetime.today().isoformat('\0')

messages: 95845
nosy: exarkun
severity: normal
status: open
title: datetime.datetime.isoformat truncation problem

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list