[Python-bugs-list] slice __doc__ string is wrong (PR#30)
tim.hochberg@ieee.org
tim.hochberg@ieee.org
Sun, 18 Jul 1999 21:35:15 -0400 (EDT)
Full_Name: Tim Hochberg
Version: 1.5.2
OS: Windows 95
Submission from: 2-404.phx.psn.net (205.164.63.104)
The __doc__ string for the slice function is wrong.
>>> slice.__doc__
'slice([start,] step[, stop]) -> slice object
Create a slice object. This is used for slicing by the Numeric extensions.'
versus the library reference:
slice ([start,] stop[, step])
Return a slice object representing the set of indices specified by
range(start, stop, step)....
The actual behaviour matches that described in the library reference.