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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18301>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to