[docs] [issue18301] In itertools.chain.from_iterable() there is no cls argument
Terry J. Reedy
report at bugs.python.org
Fri Jun 28 20:53:53 CEST 2013
Terry J. Reedy added the comment:
The 2.7 doc says 'Roughly equivalent to' rather than 'Equivalent to'.
The undecorated Python version of from_iterable actually works as an attribute of the Python version of chain: chain.from_iterable = from_iterable. I would just remove the decorator. The entire itertools doc exploits that fact that generator functions are analogous to classes, but it does not work to mix the two in the way that the 3.x chain entry does.
----------
nosy: +terry.reedy
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18301>
_______________________________________
More information about the docs
mailing list