Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9f2dcd22
Commit
9f2dcd22
authored
Jun 16, 2014
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19362: Tweek len() doc and docstring to expand the indicated range of
arguments. Original patch by Gareth Rees.
parent
357d312f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Doc/library/functions.rst
Doc/library/functions.rst
+2
-1
Python/bltinmodule.c
Python/bltinmodule.c
+1
-1
No files found.
Doc/library/functions.rst
View file @
9f2dcd22
...
...
@@ -726,7 +726,8 @@ available. They are listed here in alphabetical order.
.. function:: len(s)
Return the length (the number of items) of an object. The argument may be a
sequence (string, tuple or list) or a mapping (dictionary).
sequence (such as a string, bytes, tuple, list, or range) or a collection
(such as a dictionary, set, or frozen set).
.. function:: list([iterable])
...
...
Python/bltinmodule.c
View file @
9f2dcd22
...
...
@@ -1323,7 +1323,7 @@ builtin_len(PyObject *self, PyObject *v)
PyDoc_STRVAR
(
len_doc
,
"len(object) -> integer
\n
\
\n
\
Return the number of items of a sequence or
mapping
."
);
Return the number of items of a sequence or
collection
."
);
static
PyObject
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment