mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Patch #568124: Add doc string macros.
This commit is contained in:
parent
654c11ee3a
commit
14f8b4cfcb
63 changed files with 1509 additions and 1625 deletions
|
@ -110,12 +110,12 @@ range_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
|||
return PyRange_New(ilow, n, istep, 1);
|
||||
}
|
||||
|
||||
static char range_doc[] =
|
||||
PyDoc_STRVAR(range_doc,
|
||||
"xrange([start,] stop[, step]) -> xrange object\n\
|
||||
\n\
|
||||
Like range(), but instead of returning a list, returns an object that\n\
|
||||
generates the numbers in the range on demand. This is slightly slower\n\
|
||||
than range() but more memory efficient.";
|
||||
than range() but more memory efficient.");
|
||||
|
||||
static PyObject *
|
||||
range_item(rangeobject *r, int i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue