Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a518f0

Browse files
committed
Merge with 3.4
2 parents 9bec397 + f2fb73f commit 4a518f0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/functions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,8 @@ are always available. They are listed here in alphabetical order.
742742
.. function:: len(s)
743743

744744
Return the length (the number of items) of an object. The argument may be a
745-
sequence (string, tuple or list) or a mapping (dictionary).
745+
sequence (such as a string, bytes, tuple, list, or range) or a collection
746+
(such as a dictionary, set, or frozen set).
746747

747748

748749
.. _func-list:

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ builtin_len(PyObject *self, PyObject *v)
13271327
PyDoc_STRVAR(len_doc,
13281328
"len(object)\n\
13291329
\n\
1330-
Return the number of items of a sequence or mapping.");
1330+
Return the number of items of a sequence or collection.");
13311331

13321332

13331333
static PyObject *

0 commit comments

Comments
 (0)