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@python
components: Documentation
messages: 196100
nosy: allo, docs@python
priority: normal
severity: normal
status: open
title: mistake in the timedelta.total_seconds docstring
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18827>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to