Skip to content

Commit

Permalink
bpo-12159: Document sys.maxsize limit in len() function reference (GH…
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD authored and vstinner committed Jan 12, 2020
1 parent c12440c commit d7c7add
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doc/library/functions.rst
Expand Up @@ -892,6 +892,11 @@ are always available. They are listed here in alphabetical order.
sequence (such as a string, bytes, tuple, list, or range) or a collection
(such as a dictionary, set, or frozen set).

.. impl-detail::

``len`` raises :exc:`OverflowError` on lengths larger than
:data:`sys.maxsize`, such as :class:`range(2 ** 100) <range>`.


.. _func-list:
.. class:: list([iterable])
Expand Down

0 comments on commit d7c7add

Please sign in to comment.