[New-bugs-announce] [issue7531] datetime.timedelta doc has incorrect output
John Gardner
report at bugs.python.org
Thu Dec 17 15:32:21 CET 2009
New submission from John Gardner <python.20.huxoll at spamgourmet.com>:
The output example for timedelta in datetime package has the wrong
output for the supplied commands.
For example:
>>> ten_years, ten_years.days // 365
(datetime.timedelta(3650), 10)
should be:
>>> ten_years, ten_years.days
(datetime.timedelta(3650), 3650)
(or perhaps, days changed to years.
It's very misleading to have these strange numbers as output.
Also, the comments to the right don't seem to be relevant.
----------
assignee: georg.brandl
components: Documentation
messages: 96514
nosy: georg.brandl, huxoll
severity: normal
status: open
title: datetime.timedelta doc has incorrect output
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7531>
_______________________________________
More information about the New-bugs-announce
mailing list