summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-10-07 21:48:36 (GMT)
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-10-07 21:48:36 (GMT)
commit83fe2e1c22e6ff72a308e82e1e24ca03f8c51339 (patch)
treef8e8071faf6e7d06b812c8fa9090c41c57ad91d3 /Objects/rangeobject.c
parentc3e5b10ae76c3ffe8672e91a5478a19e35b60220 (diff)
downloadcpython-83fe2e1c22e6ff72a308e82e1e24ca03f8c51339.zip
cpython-83fe2e1c22e6ff72a308e82e1e24ca03f8c51339.tar.gz
cpython-83fe2e1c22e6ff72a308e82e1e24ca03f8c51339.tar.bz2
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.
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r--Objects/rangeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index 935b205..b67b969 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -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.");