Issue #14783: Improve int() docstring and also str(), range(), and slice().

This commit rewrites the docstring for int() to incorporate the documentation
changes made in issue #16036.  It also switches the docstrings for int(),
str(), range(), and slice() to use multi-line signatures.
This commit is contained in:
Chris Jerdonek 2012-10-07 14:48:36 -07:00
parent c3e5b10ae7
commit 83fe2e1c22
6 changed files with 24 additions and 10 deletions

View file

@ -135,7 +135,8 @@ range_new(PyTypeObject *type, PyObject *args, PyObject *kw)
}
PyDoc_STRVAR(range_doc,
"range([start,] stop[, step]) -> range object\n\
"range(stop) -> range object\n\
range(start, stop[, step]) -> range object\n\
\n\
Returns a virtual sequence of numbers from start to stop by step.");