-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-15718: Document the upper bound constrain on __len__ return value. #1256
bpo-15718: Document the upper bound constrain on __len__ return value. #1256
Conversation
@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @birkenfeld, @ncoghlan and @1st1 to be potential reviewers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit point, other LGTM
Doc/reference/datamodel.rst
Outdated
In CPython, the length is required to be at most :attr:`sys.maxsize`. | ||
If the length is larger than ``sys.maxsize`` some features (such as | ||
:func:`len`) may raise :exc:`OverflowError`. To prevent raising | ||
``OverflowError`` by truth value testing an object must define a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nit point, add a comma after truth value testing
by truth value testing, an object must ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lulouie!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With comma
…turn value. (pythonGH-1256) (cherry picked from commit 85157cd)
…turn value. (pythonGH-1256) (cherry picked from commit 85157cd)
…turn value. (pythonGH-1256). (cherry picked from commit 85157cd)
No description provided.