[docs] typo

Alexander Heger alex at physics.umn.edu
Fri Aug 13 05:56:54 CEST 2010


in
http://docs.python.org/library/functions.html

range([start], stop[, step])

should be written as

range([start,] stop[, step])

same for slice.

EXAMPLE:

In [91]: range(,2)
------------------------------------------------------------
    File "<ipython console>", line 1
      range(,2)
            ^
SyntaxError: invalid syntax


In [92]: range(2)
Out[92]: [0, 1]


More information about the docs mailing list