Title: statistics: incorrect documentation
Type: Stage:
Components: Documentation Versions: Python 3.9, Python 3.8, Python 3.7, Python 3.6, Python 3.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: docs@python, lebigot, rhettinger, steven.daprano
Priority: normal Keywords:

Created on 2019-10-06 19:10 by lebigot, last changed 2019-10-06 19:20 by rhettinger.

Messages (2)
msg354043 - (view) Author: Eric O. LEBIGOT (lebigot) Date: 2019-10-06 19:10
The documentation for the statistics package indicates that many of its functions (like median()) accept iterators. They seem to actually accept something more convenient, namely iterables.

Thus, iterator could probably be  usefully replaced by iterable on many of the functions (when applicable, which I would expect is everywhere).
msg354044 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2019-10-06 19:20
This is a reasonable suggestion (all iterators are iterable, but not all iterables are iterators).  I'll work on it shortly (in conjunction with some other minor doc fixups).
Date User Action Args
2019-10-06 19:20:19rhettingersetassignee: docs@python -> rhettinger

messages: + msg354044
nosy: + steven.daprano, rhettinger
2019-10-06 19:10:16lebigotcreate