[Python-checkins] Mark len call as a code snippet in stdtypes.rst. (GH-9804)

Serhiy Storchaka webhook-mailer at python.org
Wed Nov 7 12:22:52 EST 2018


https://github.com/python/cpython/commit/ca03f3b93ee5c2943a2b8cbf9447f99f835ec672
commit: ca03f3b93ee5c2943a2b8cbf9447f99f835ec672
branch: master
author: Andrés Delfino <adelfino at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-11-07T19:22:47+02:00
summary:

Mark len call as a code snippet in stdtypes.rst. (GH-9804)

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 49d433805a32..18cd0b06885a 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -3809,7 +3809,7 @@ copying.
 
       ``nbytes == product(shape) * itemsize == len(m.tobytes())``. This is
       the amount of space in bytes that the array would use in a contiguous
-      representation. It is not necessarily equal to len(m)::
+      representation. It is not necessarily equal to ``len(m)``::
 
          >>> import array
          >>> a = array.array('i', [1,2,3,4,5])



More information about the Python-checkins mailing list