bpo-12159: Document sys.maxsize limit in len() function reference (GH-17934)

This commit is contained in:
Zac Hatfield-Dodds 2020-01-12 19:04:14 +10:00 committed by Victor Stinner
parent c12440c371
commit d7c7adde00
1 changed files with 5 additions and 0 deletions

View File

@ -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])