[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files
Raymond Hettinger
report at bugs.python.org
Fri Jan 20 12:07:37 EST 2017
Raymond Hettinger added the comment:
The application of AC to enumerate() lost information about the start argument and the signature of the call. We're going backwards.
---- New help -----------------------------------------------------
class enumerate(object)
| Return an enumerate object.
|
| iterable
| an object supporting iteration
|
| The enumerate object yields pairs containing a count (from start, which
| defaults to zero) and a value yielded by the iterable argument.
|
| enumerate is useful for obtaining an indexed list:
| (0, seq[0]), (1, seq[1]), (2, seq[2]), ...
---- Old help -----------------------------------------------------
class enumerate(object)
| enumerate(iterable[, start]) -> iterator for index, value of iterable
|
| Return an enumerate object. iterable must be another object that supports
| iteration. The enumerate object yields pairs containing a count (from
| start, which defaults to zero) and a value yielded by the iterable argument.
| enumerate is useful for obtaining an indexed list:
| (0, seq[0]), (1, seq[1]), (2, seq[2]), ...
Also, reversed() lost the indication of its signature:
reversed(sequence) -> reverse iterator over values of the sequence
And the help doesn't have the usual:
iterable
| an object supporting iteration
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20186>
_______________________________________
More information about the Python-bugs-list
mailing list