[issue33130] functools.reduce signature/docstring discordance

2018-03-31 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for switching over to `iterable` in the reduce docstring. As a possible enhancement for 3.8+ only, it would be reasonable to start converting functools over to Argument Clinic in order to improve the introspection support. (Note that only some APIs could be

[issue33130] functools.reduce signature/docstring discordance

2018-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: inspect.signature(functools.reduce) raises, so I presume you mean the header for the reduce entry at https://docs.python.org/3/library/functools.html#functools.reduce. The first line of the docstring, functools.reduce.__doc__, also displayed by help(functool

[issue33130] functools.reduce signature/docstring discordance

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan, rhettinger versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue33130] functools.reduce signature/docstring discordance

2018-03-23 Thread Vince Reuter
New submission from Vince Reuter : The signature for functools.reduce correctly refers to the collection parameter as an iterable, but the docstring refers to it as "sequence," which the input need not be and does not match the parameter name despite being italicized. -- assignee: docs