[docs] [issue18827] mistake in the timedelta.total_seconds docstring

Alexander Schier report at bugs.python.org
Sun Aug 25 00:05:21 CEST 2013


New submission from Alexander Schier:

> Return the total number of seconds contained in the duration. Equivalent to (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) / 10**6 computed with true division enabled.

Should be
> Return the total number of seconds contained in the duration. Equivalent to (td.microseconds / 10**6 + (td.seconds + td.days * 24 * 3600) * 10**6) computed with true division enabled.

At least i hope, the bug is only in the docs and not in the function ;).

----------
assignee: docs at python
components: Documentation
messages: 196100
nosy: allo, docs at python
priority: normal
severity: normal
status: open
title: mistake in the timedelta.total_seconds docstring
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18827>
_______________________________________


More information about the docs mailing list